HomeSort by relevance Sort by last modified time
    Searched refs:urandom_fd (Results 1 - 2 of 2) sorted by null

  /external/boringssl/src/crypto/rand/
urandom.c 84 /* urandom_fd is a file descriptor to /dev/urandom. It's protected by
86 static int urandom_fd = -2; variable
95 if (urandom_fd != -2) {
96 return urandom_fd;
99 urandom_fd = open("/dev/urandom", O_RDONLY);
100 return urandom_fd;
113 if (urandom_fd >= 0) {
114 close(urandom_fd);
116 urandom_fd = -2;
  /system/core/init/
init.cpp 662 int urandom_fd = -1; local
680 urandom_fd = TEMP_FAILURE_RETRY(
682 if (urandom_fd == -1) {
698 chunk_size = TEMP_FAILURE_RETRY(write(urandom_fd, buf, chunk_size));
714 if (urandom_fd != -1) {
715 close(urandom_fd);
    [all...]

Completed in 517 milliseconds