Searched defs:random_fd (Results 1 - 1 of 1) sorted by relevance

/systemd/src/random-seed/
H A Drandom-seed.c37 _cleanup_close_ int seed_fd = -1, random_fd = -1; local
107 random_fd = open("/dev/urandom", O_RDWR|O_CLOEXEC|O_NOCTTY, 0600);
108 if (random_fd < 0) {
109 random_fd = open("/dev/urandom", O_WRONLY|O_CLOEXEC|O_NOCTTY, 0600);
110 if (random_fd < 0) {
125 r = loop_write(random_fd, buf, (size_t) k, false);
138 random_fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
139 if (random_fd < 0) {
158 k = loop_read(random_fd, buf, buf_size, false);

Completed in 10 milliseconds