Home
last modified time | relevance | path

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

/openbmc/linux/scripts/gcc-plugins/
H A Dlatent_entropy_plugin.c90 static unsigned HOST_WIDE_INT rnd_buf[32]; variable
91 static size_t rnd_idx = ARRAY_SIZE(rnd_buf);
109 if (rnd_idx >= ARRAY_SIZE(rnd_buf)) { in get_random_const()
110 gcc_assert(read(urandom_fd, rnd_buf, sizeof(rnd_buf)) == sizeof(rnd_buf)); in get_random_const()
113 return rnd_buf[rnd_idx++]; in get_random_const()