mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
47b14d783b
- Support PLIST_FILES PR: 179226 Submitted by: ports fury
23 lines
343 B
C
23 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);
|
|
}
|
|
|
|
|