Home
last modified time | relevance | path

Searched refs:urandom_fd (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/scripts/gcc-plugins/
H A Dlatent_entropy_plugin.c92 static int urandom_fd = -1; variable
105 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()
/kernel/linux/linux-6.6/scripts/gcc-plugins/
H A Dlatent_entropy_plugin.c92 static int urandom_fd = -1; variable
105 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()

Completed in 2 milliseconds