opnsense-ports/misc/xpns/files/patch-simget.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

22 lines
343 B
C

--- simget.c.orig
+++ simget.c
@@ -19,8 +19,9 @@
#include <stdio.h>
-
-#define RAND_MAX ((1<<31)-1)
+#ifndef RAND_MAX
+#define RAND_MAX ((1UL<<31)-1)
+#endif
/*************************************************************************
@@ -32,6 +33,7 @@ void SimGetInit()
unsigned int e;
srand( 17);
+ srandom( 17);
}