aboutsummaryrefslogtreecommitdiffstats
path: root/misc/xpns/files/patch-simget.c
blob: 62d02447d0b715f322413249cf0a185342cd4491 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- 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);
 }