Home
last modified time | relevance | path

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

/third_party/glib/glib/
Dgrand.c227 FILE* dev_urandom; in g_rand_new() local
231 dev_urandom = fopen("/dev/urandom", "rb"); in g_rand_new()
233 while G_UNLIKELY (dev_urandom == NULL && errno == EINTR); in g_rand_new()
235 if (dev_urandom) in g_rand_new()
239 setvbuf (dev_urandom, NULL, _IONBF, 0); in g_rand_new()
243 r = fread (seed, sizeof (seed), 1, dev_urandom); in g_rand_new()
250 fclose (dev_urandom); in g_rand_new()
/third_party/abseil-cpp/absl/random/internal/
Dseed_material.cc132 int dev_urandom = open(kEntropyFile, O_RDONLY);
133 bool success = (-1 != dev_urandom);
139 int bytes_read = read(dev_urandom, buffer, buffer_size);
149 close(dev_urandom);
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dseed_material.cc169 int dev_urandom = open(kEntropyFile, O_RDONLY);
170 bool success = (-1 != dev_urandom);
176 int bytes_read = read(dev_urandom, buffer, buffer_size);
186 close(dev_urandom);
/third_party/eudev/src/shared/
Drandom-util.c33 int dev_urandom(void *p, size_t n) { in dev_urandom() function
115 r = dev_urandom(p, n); in random_bytes()
Drandom-util.h24 int dev_urandom(void *p, size_t n);
/third_party/python/Python/
Dbootstrap_hash.c325 dev_urandom(char *buffer, Py_ssize_t size, int raise) in dev_urandom() function
538 return dev_urandom(buffer, size, raise); in pyurandom()
/third_party/NuttX/
DReleaseNotes18461 - Crypto: Move dev_urandom.c into new crypto folder. From Xiang