]>
git.ipfire.org Git - thirdparty/rng-tools.git/blob - contrib/randstat.c
6 #include <linux/types.h>
7 #include <linux/random.h>
12 int main(int argc
, char **argv
)
17 random_fd
= open("/dev/random", O_RDONLY
);
22 if (ioctl(random_fd
, RNDGETENTCNT
, &ent_count
) != 0)
25 printf("%d\n", ent_count
);