Searched refs:urandom_fd (Results 1 – 4 of 4) sorted by relevance
82 static int urandom_fd = -2; variable91 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()
49 const int urandom_fd = g_urandom_fd.Pointer()->fd(); in RandBytes() local51 ReadFromFD(urandom_fd, static_cast<char*>(output), output_length); in RandBytes()
180 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()
312 int urandom_fd = dup(base::GetUrandomFD()); in OnStart() local313 if (urandom_fd < 0) { in OnStart()317 NaClChromeMainSetUrandomFd(urandom_fd); in OnStart()