]> git.pond.sub.org Git - empserver/commitdiff
Make sure that the same prng is used on all systems, namely *rand48().
authorMarc Olzheim <marcolz@stack.nl>
Sat, 19 Jun 2004 13:54:49 +0000 (13:54 +0000)
committerMarc Olzheim <marcolz@stack.nl>
Sat, 19 Jun 2004 13:54:49 +0000 (13:54 +0000)
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.

src/scripts/nightly/patches/All/prng.patch [new file with mode: 0644]

diff --git a/src/scripts/nightly/patches/All/prng.patch b/src/scripts/nightly/patches/All/prng.patch
new file mode 100644 (file)
index 0000000..5b2e2de
--- /dev/null
@@ -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