Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/rand/
Durandom.c86 static int urandom_fd = -2; variable
95 if (urandom_fd != -2) { in urandom_get_fd_locked()
96 return urandom_fd; in urandom_get_fd_locked()
99 urandom_fd = open("/dev/urandom", O_RDONLY); in urandom_get_fd_locked()
100 return urandom_fd; in urandom_get_fd_locked()
113 if (urandom_fd >= 0) { in RAND_cleanup()
114 close(urandom_fd); in RAND_cleanup()
116 urandom_fd = -2; in RAND_cleanup()