diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Modules/mathfunc.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8150883de..ecd07b13a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-06-08 Peter Stephenson <pws@pwstephenson.fsnet.co.uk> + + * 20029: Src/Modules/mathfunc.c: rand48(seed) stopped being + random after the second call. + 2004-06-08 Peter Stephenson <pws@csr.com> * Philippe Troin: 20026: INSTALL: nit-pick. diff --git a/Src/Modules/mathfunc.c b/Src/Modules/mathfunc.c index 691755683..6b6488abb 100644 --- a/Src/Modules/mathfunc.c +++ b/Src/Modules/mathfunc.c @@ -500,7 +500,7 @@ math_string(UNUSED(char *name), char *arg, int id) * to each unsigned short. */ for (i = 0; i < 3 && !do_init; i++) { - unsigned short *seedptr = seedbuf + i; + unsigned short *seedptr = seedbufptr + i; *seedptr = 0; for (j = 0; j < 4; j++) { if (*seedstr >= '0' && *seedstr <= '9') |