From 30616fca424a17615f0f4b232c6ac453170ebfc9 Mon Sep 17 00:00:00 2001 From: evomarc Date: Fri, 5 Oct 2001 03:56:21 +0000 Subject: [PATCH] Forgot to double also the parameter to initialize in the Ctor! --- eo/src/utils/eoRNG.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eo/src/utils/eoRNG.h b/eo/src/utils/eoRNG.h index faeead88..1c8d8f63 100644 --- a/eo/src/utils/eoRNG.h +++ b/eo/src/utils/eoRNG.h @@ -110,12 +110,12 @@ class eoRng : public eoObject, public eoPersistent public : /** ctor takes a random seed; if you want another seed, use reseed - @see reseed + @see reseed to see why the parameter to initialize is doubled */ eoRng(uint32 s) : state(0), next(0), left(-1), cached(false), N(624), M(397), K(0x9908B0DFU) { state = new uint32[N+1]; - initialize(s); + initialize(2*s); } ~eoRng(void)