Home
last modified time | relevance | path

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

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Drandom.c56 static int random_fd = -1; variable
334 if (random_fd >= 0) { in random_close_fd()
335 eloop_unregister_read_sock(random_fd); in random_close_fd()
336 close(random_fd); in random_close_fd()
337 random_fd = -1; in random_close_fd()
450 if (random_fd >= 0) in random_init()
466 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_init()
467 if (random_fd < 0) { in random_init()
475 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL); in random_init()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Drandom.c56 static int random_fd = -1; variable
334 if (random_fd >= 0) { in random_close_fd()
335 eloop_unregister_read_sock(random_fd); in random_close_fd()
336 close(random_fd); in random_close_fd()
337 random_fd = -1; in random_close_fd()
450 if (random_fd >= 0) in random_init()
466 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_init()
467 if (random_fd < 0) { in random_init()
475 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL); in random_init()