Home
last modified time | relevance | path

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

/hostap-latest/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()