blob: 17e2a02fac07701f2f01c94216a3ddc91c3766ba [file] [log] [blame]
bigbiff bigbiffe60683a2013-02-22 20:55:50 -05001#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
9extern int random_get_fd(void);
10extern void random_get_bytes(void *buf, size_t nbytes);
bigbiff7b4c7a62015-01-01 19:44:14 -050011extern const char *random_tell_source(void);
bigbiff bigbiffe60683a2013-02-22 20:55:50 -050012
13#endif