diff options
-rw-r--r-- | main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -118,6 +118,13 @@ static bool server_socket_callback(int fd){ return false; } +#ifndef __APPLE__ +#include <sys/time.h> +void srandomdev(void){ + srandom(time(NULL)); +} +#endif + int main(void){ srandomdev(); |