Forgot to double also the parameter to initialize in the Ctor!
This commit is contained in:
parent
f4efc65994
commit
30616fca42
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Reference in a new issue