From d9d996c5caf7d4332f41f06aa44806fe9d33fe96 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 17 Mar 2017 18:06:30 +0100 Subject: srandomdev monkeypatch --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.c b/main.c index 557dc77..f73afe1 100644 --- a/main.c +++ b/main.c @@ -118,6 +118,13 @@ static bool server_socket_callback(int fd){ return false; } +#ifndef __APPLE__ +#include +void srandomdev(void){ + srandom(time(NULL)); +} +#endif + int main(void){ srandomdev(); -- cgit v1.2.3-70-g09d2