]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/randutils.h
1 #ifndef UTIL_LINUX_RANDUTILS
2 #define UTIL_LINUX_RANDUTILS
5 #define srand(x) srandom(x)
6 #define rand() random()
10 extern int rand_get_number(int low_n
, int high_n
);
12 /* /dev/urandom based with fallback to rand() */
13 extern int random_get_fd(void);
14 extern void random_get_bytes(void *buf
, size_t nbytes
);
15 extern const char *random_tell_source(void);