Make sure that the same prng is used on all systems, namely *rand48().
For now, only fairland.c is "fixed". We'll have to patch the random calls in the server to use the RANDOM and SRANDOM macros to make things completely reproducible.
This commit is contained in:
parent
e68dba6d23
commit
17c4546ec6
1 changed files with 9 additions and 0 deletions
9
src/scripts/nightly/patches/All/prng.patch
Normal file
9
src/scripts/nightly/patches/All/prng.patch
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Index: empserver/Make.sysdefs
|
||||||
|
--- empserver/Make.sysdefs Sun Mar 21 16:44:42 2004
|
||||||
|
+++ empserver/Make.sysdefs Sat Jun 19 15:45:43 2004
|
||||||
|
@@ -158,3 +158,5 @@
|
||||||
|
VAXULTCFLAGS = -O -DNOSTRDUP -DPOSIXSIGNALS
|
||||||
|
VAXULTLFLAGS =
|
||||||
|
VAXULTMASTER = GLOBALCFLAGS="$(VAXULTCFLAGS)" GLOBALLFLAGS="$(VAXULTLFLAGS)"
|
||||||
|
+
|
||||||
|
+GLOBALLFLAGS += -DRANDOM=rand48 -DSRANDOM=srand48
|
Loading…
Add table
Add a link
Reference in a new issue