diff options
author | Max Horn | 2002-07-16 15:48:59 +0000 |
---|---|---|
committer | Max Horn | 2002-07-16 15:48:59 +0000 |
commit | 2e9d668748e9dab6593aa11969748bf141a59517 (patch) | |
tree | eb2a44ed79e5f83d11b9ae3886c488d59cccec2c | |
parent | 8951ea0cd15ffe440dde11acbd65133e3f1fef07 (diff) | |
download | scummvm-rg350-2e9d668748e9dab6593aa11969748bf141a59517.tar.gz scummvm-rg350-2e9d668748e9dab6593aa11969748bf141a59517.tar.bz2 scummvm-rg350-2e9d668748e9dab6593aa11969748bf141a59517.zip |
primes usually give better results (verified this with Chi Squared test
svn-id: r4572
-rw-r--r-- | scummvm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scummvm.cpp b/scummvm.cpp index 066d72c965..8dbb01cf49 100644 --- a/scummvm.cpp +++ b/scummvm.cpp @@ -38,14 +38,14 @@ int autosave(int interval) /* Not in class to prevent being bound */ void Scumm::initRandSeeds() { - _randSeed1 = 0xA943DE35; - _randSeed2 = 0x37A9ED27; + _randSeed1 = 0xA943DE33; + _randSeed2 = 0x37A9ED29; } uint Scumm::getRandomNumber(uint max) { /* TODO: my own random number generator */ - _randSeed1 = 0xDEADBEEF * (_randSeed1 + 1); + _randSeed1 = 0xDEADBF03 * (_randSeed1 + 1); _randSeed1 = (_randSeed1 >> 13) | (_randSeed1 << 19); return _randSeed1 % (max + 1); } |