libc: Refine the arc4random_buf implementation

fill the buffer with getrandom instead random pool
and move the implementation to from crypto to libc

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2024-10-25 18:09:30 +08:00
committed by Alan C. Assis
parent b5e5cdd851
commit 32784b0898
17 changed files with 103 additions and 154 deletions
-8
View File
@@ -384,14 +384,6 @@ SYSCALL_LOOKUP(munmap, 2)
SYSCALL_LOOKUP(socketpair, 4)
#endif
/* The following is defined only if entropy pool random number generator
* is enabled.
*/
#ifdef CONFIG_CRYPTO_RANDOM_POOL
SYSCALL_LOOKUP(arc4random_buf, 2)
#endif
SYSCALL_LOOKUP(nanosleep, 2)
/* I/O event notification facility */