summaryrefslogtreecommitdiff
path: root/fuzz/prng.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-09-20 17:48:15 +0100
committerColin Watson <cjwatson@debian.org>2020-09-20 17:48:15 +0100
commit05fa6dd7724ccfd1c183e6e4bf9d22eb12abea8c (patch)
tree71d3eccc33c93c230b021c72f1fb9cf2247bf6c0 /fuzz/prng.c
parentb77d6ed4d47acbc836f05be0e9f4abeb104e21ff (diff)
parent173bfbf7886608a4a7abbfac6a42ac4bf4a3432d (diff)
Update upstream source from tag 'upstream/1.5.0'
Update to upstream version '1.5.0' with Debian dir 102fd7ed15b138200444754d256b136933185ec2
Diffstat (limited to 'fuzz/prng.c')
-rw-r--r--[-rwxr-xr-x]fuzz/prng.c3
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[]. */