diff options
Diffstat (limited to 'fuzz/prng.c')
-rw-r--r--[-rwxr-xr-x] | fuzz/prng.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzz/prng.c b/fuzz/prng.c index fa6d4e4..61114ac 100755..100644 --- a/fuzz/prng.c +++ b/fuzz/prng.c | |||
@@ -63,7 +63,8 @@ void init_genrand(unsigned long s) | |||
63 | mt[0]= s & 0xffffffffUL; | 63 | mt[0]= s & 0xffffffffUL; |
64 | for (mti=1; mti<N; mti++) { | 64 | for (mti=1; mti<N; mti++) { |
65 | mt[mti] = | 65 | mt[mti] = |
66 | (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); | 66 | (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + |
67 | (unsigned long)mti); | ||
67 | /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ | 68 | /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ |
68 | /* In the previous versions, MSBs of the seed affect */ | 69 | /* In the previous versions, MSBs of the seed affect */ |
69 | /* only MSBs of the array mt[]. */ | 70 | /* only MSBs of the array mt[]. */ |