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

/external/chromium_org/base/
H A Drand_util_posix.cc49 const int urandom_fd = g_urandom_fd.Pointer()->fd(); local
51 ReadFromFD(urandom_fd, static_cast<char*>(output), output_length);
/external/chromium_org/third_party/boringssl/src/crypto/rand/
H A Durandom.c80 /* urandom_fd is a file descriptor to /dev/urandom. It's protected by
82 static int urandom_fd = -2; variable
91 if (urandom_fd != -2)
92 return urandom_fd;
94 urandom_fd = open("/dev/urandom", O_RDONLY);
95 return urandom_fd;
108 if (urandom_fd >= 0) {
109 close(urandom_fd);
111 urandom_fd = -2;
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dsystem-alloc.cc180 int urandom_fd = open("/dev/urandom", O_RDONLY);
181 if (urandom_fd >= 0) {
183 len = read(urandom_fd, &seed, sizeof(seed));
185 int ret = close(urandom_fd);
/external/chromium_org/components/nacl/loader/
H A Dnacl_listener.cc312 int urandom_fd = dup(base::GetUrandomFD()); local
313 if (urandom_fd < 0) {
317 NaClChromeMainSetUrandomFd(urandom_fd);

Completed in 178 milliseconds