bigbiff bigbiff | e60683a | 2013-02-22 20:55:50 -0500 | [diff] [blame] | 1 | #ifndef UTIL_LINUX_RANDUTILS |
2 | #define UTIL_LINUX_RANDUTILS | ||||
3 | |||||
4 | #ifdef HAVE_SRANDOM | ||||
5 | #define srand(x) srandom(x) | ||||
6 | #define rand() random() | ||||
7 | #endif | ||||
8 | |||||
9 | extern int random_get_fd(void); | ||||
10 | extern void random_get_bytes(void *buf, size_t nbytes); | ||||
bigbiff | 7b4c7a6 | 2015-01-01 19:44:14 -0500 | [diff] [blame^] | 11 | extern const char *random_tell_source(void); |
bigbiff bigbiff | e60683a | 2013-02-22 20:55:50 -0500 | [diff] [blame] | 12 | |
13 | #endif |