Searched refs:random_fd (Results 1 - 3 of 3) sorted by relevance
/netbsd-current/lib/librumpuser/ |
H A D | rumpuser_random.c | 60 static int random_fd = -1; variable 66 random_fd = open(random_device, O_RDONLY); 67 if (random_fd < 0) { 81 rv = read(random_fd, buf, buflen > random_maxread ? random_maxread : buflen);
|
/netbsd-current/external/bsd/wpa/dist/src/crypto/ |
H A D | random.c | 55 static int random_fd = -1; variable 322 if (random_fd >= 0) { 323 eloop_unregister_read_sock(random_fd); 324 close(random_fd); 325 random_fd = -1; 438 if (random_fd >= 0) 454 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); 455 if (random_fd < 0) { 463 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL);
|
/netbsd-current/external/cddl/osnet/dist/lib/libzpool/common/ |
H A D | kernel.c | 904 static int random_fd = -1, urandom_fd = -1; variable 927 return (random_get_bytes_common(ptr, len, random_fd)); 1010 VERIFY((random_fd = open("/dev/random", O_RDONLY)) != -1); 1031 close(random_fd); 1034 random_fd = -1;
|
Completed in 95 milliseconds