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.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/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()