Home
last modified time | relevance | path

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

/external/chromium_org/third_party/boringssl/src/crypto/rand/
Durandom.c82 static int urandom_fd = -2; variable
91 if (urandom_fd != -2) in urandom_get_fd_locked()
92 return urandom_fd; in urandom_get_fd_locked()
94 urandom_fd = open("/dev/urandom", O_RDONLY); in urandom_get_fd_locked()
95 return urandom_fd; in urandom_get_fd_locked()
108 if (urandom_fd >= 0) { in RAND_cleanup()
109 close(urandom_fd); in RAND_cleanup()
111 urandom_fd = -2; in RAND_cleanup()
/external/chromium_org/base/
Drand_util_posix.cc49 const int urandom_fd = g_urandom_fd.Pointer()->fd(); in RandBytes() local
51 ReadFromFD(urandom_fd, static_cast<char*>(output), output_length); in RandBytes()
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dsystem-alloc.cc180 int urandom_fd = open("/dev/urandom", O_RDONLY); in GetRandomAddrHint()
181 if (urandom_fd >= 0) { in GetRandomAddrHint()
183 len = read(urandom_fd, &seed, sizeof(seed)); in GetRandomAddrHint()
185 int ret = close(urandom_fd); in GetRandomAddrHint()
/external/chromium_org/components/nacl/loader/
Dnacl_listener.cc312 int urandom_fd = dup(base::GetUrandomFD()); in OnStart() local
313 if (urandom_fd < 0) { in OnStart()
317 NaClChromeMainSetUrandomFd(urandom_fd); in OnStart()