Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/crypto/
Drandom.c55 static int random_fd = -1; variable
329 if (random_fd >= 0) { in random_close_fd()
330 eloop_unregister_read_sock(random_fd); in random_close_fd()
331 close(random_fd); in random_close_fd()
332 random_fd = -1; in random_close_fd()
445 if (random_fd >= 0) in random_init()
461 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_init()
462 if (random_fd < 0) { in random_init()
470 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL); in random_init()
/external/python/cryptography/src/_cffi_src/openssl/src/
Dosrandom_engine.c117 int random_fd = open("/dev/random", O_RDONLY); in wait_on_devrandom() local
118 if (random_fd < 0) { in wait_on_devrandom()
121 if (set_cloexec(random_fd) < 0) { in wait_on_devrandom()
124 pfd.fd = random_fd; in wait_on_devrandom()
130 close(random_fd); in wait_on_devrandom()