mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2024-11-23 22:00:11 +00:00
13 lines
236 B
C
13 lines
236 B
C
#ifndef UTIL_LINUX_RANDUTILS
|
|
#define UTIL_LINUX_RANDUTILS
|
|
|
|
#ifdef HAVE_SRANDOM
|
|
#define srand(x) srandom(x)
|
|
#define rand() random()
|
|
#endif
|
|
|
|
extern int random_get_fd(void);
|
|
extern void random_get_bytes(void *buf, size_t nbytes);
|
|
|
|
#endif
|