mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
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:
committed by
Alan C. Assis
parent
b5e5cdd851
commit
32784b0898
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user