Searched refs:urandom_fd (Results 1 – 1 of 1) sorted by relevance
92 static int urandom_fd = -1; variable105 if (urandom_fd < 0) { in get_random_const()106 urandom_fd = open("/dev/urandom", O_RDONLY); in get_random_const()107 gcc_assert(urandom_fd >= 0); in get_random_const()110 gcc_assert(read(urandom_fd, rnd_buf, sizeof(rnd_buf)) == sizeof(rnd_buf)); in get_random_const()