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

/external/wpa_supplicant_8/hostapd/src/crypto/
H A Drandom.c52 static int random_fd = -1; variable
295 if (random_fd >= 0) {
296 eloop_unregister_read_sock(random_fd);
297 close(random_fd);
298 random_fd = -1;
412 if (random_fd >= 0)
415 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
416 if (random_fd < 0) {
424 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL);
/external/wpa_supplicant_8/src/crypto/
H A Drandom.c52 static int random_fd = -1; variable
295 if (random_fd >= 0) {
296 eloop_unregister_read_sock(random_fd);
297 close(random_fd);
298 random_fd = -1;
412 if (random_fd >= 0)
415 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
416 if (random_fd < 0) {
424 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL);
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Drandom.c52 static int random_fd = -1; variable
295 if (random_fd >= 0) {
296 eloop_unregister_read_sock(random_fd);
297 close(random_fd);
298 random_fd = -1;
412 if (random_fd >= 0)
415 random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
416 if (random_fd < 0) {
424 eloop_register_read_sock(random_fd, random_read_fd, NULL, NULL);
/external/autotest/client/site_tests/platform_CompressedSwap/src/
H A Dhog.c37 int random_fd = open("/dev/urandom", O_RDONLY); local
61 read(random_fd, fake_data, CHUNK_SIZE / compression_factor);
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/
H A Dhog.c92 int random_fd = open("/dev/urandom", O_RDONLY); local
147 read(random_fd, fake_data, CHUNK_SIZE / compression_factor);

Completed in 86 milliseconds