Home
last modified time | relevance | path

Searched refs:random_fd (Results 1 – 3 of 3) sorted by relevance

/netbsd/src/external/bsd/wpa/dist/src/crypto/
Drandom.c55 static int random_fd = -1; variable
322 if (random_fd >= 0) { in random_close_fd()
323 eloop_unregister_read_sock(random_fd); in random_close_fd()
324 close(random_fd); in random_close_fd()
325 random_fd = -1; in random_close_fd()
438 if (random_fd >= 0) in random_init()
454 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_init()
455 if (random_fd < 0) { in random_init()
463 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL); in random_init()
/netbsd/src/lib/librumpuser/
Drumpuser_random.c60 static int random_fd = -1; variable
66 random_fd = open(random_device, O_RDONLY); in rumpuser__random_init()
67 if (random_fd < 0) { in rumpuser__random_init()
81 rv = read(random_fd, buf, buflen > random_maxread ? random_maxread : buflen); in rumpuser_getrandom()
/netbsd/src/external/cddl/osnet/dist/lib/libzpool/common/
Dkernel.c904 static int random_fd = -1, urandom_fd = -1; variable
927 return (random_get_bytes_common(ptr, len, random_fd)); in random_get_bytes()
1010 VERIFY((random_fd = open("/dev/random", O_RDONLY)) != -1); in kernel_init()
1031 close(random_fd); in kernel_fini()
1034 random_fd = -1; in kernel_fini()