Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/crypto/
Drandom.c52 static int random_fd = -1; variable
302 if (random_fd >= 0) { in random_close_fd()
303 eloop_unregister_read_sock(random_fd); in random_close_fd()
304 close(random_fd); in random_close_fd()
305 random_fd = -1; in random_close_fd()
419 if (random_fd >= 0) in random_init()
422 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK); in random_init()
423 if (random_fd < 0) { in random_init()
431 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL); in random_init()
/external/autotest/client/site_tests/platform_CompressedSwap/src/
Dhog.c37 int random_fd = open("/dev/urandom", O_RDONLY); in main() local
61 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); in main()
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/
Dhog.c92 int random_fd = open("/dev/urandom", O_RDONLY); in main() local
147 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); in main()