diff options
author | nia <nia@NetBSD.org> | 2019-10-21 20:33:48 +0100 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2019-10-29 13:36:05 +0100 |
commit | a62f8ced7af51d1c4fd8abceb521bd24f362ab14 (patch) | |
tree | 1a310442703c2f05a79dbb6c2094386d4f2adfae /src/unix/random-devurandom.c | |
parent | 2dcf2e8188f433fb668ffc586ffd485d0ff91059 (diff) | |
download | libuv-a62f8ced7af51d1c4fd8abceb521bd24f362ab14.tar.gz libuv-a62f8ced7af51d1c4fd8abceb521bd24f362ab14.zip |
netbsd: use KERN_ARND sysctl to get entropy
PR-URL: https://github.com/libuv/libuv/pull/2528
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'src/unix/random-devurandom.c')
-rw-r--r-- | src/unix/random-devurandom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unix/random-devurandom.c b/src/unix/random-devurandom.c index bfc40d20..9aa762e3 100644 --- a/src/unix/random-devurandom.c +++ b/src/unix/random-devurandom.c @@ -74,10 +74,10 @@ int uv__random_readpath(const char* path, void* buf, size_t buflen) { static void uv__random_devurandom_init(void) { char c; - /* Linux's and NetBSD's random(4) man page suggests applications should read - * at least once from /dev/random before switching to /dev/urandom in order - * to seed the system RNG. Reads from /dev/random can of course block - * indefinitely until entropy is available but that's the point. + /* Linux's random(4) man page suggests applications should read at least + * once from /dev/random before switching to /dev/urandom in order to seed + * the system RNG. Reads from /dev/random can of course block indefinitely + * until entropy is available but that's the point. */ status = uv__random_readpath("/dev/random", &c, 1); } |