blob: dec5e355a43947a0133087a9ef2fcd1181b0da99 [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);
11
12#endif