X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fyarandom.c;h=cc38895e5130bc2a7a625def971bd6e98cd8c338;hp=f12ea952857d3a84cc5e939814b9ee11acb74337;hb=de460e831dc8578acfa8b72251ab9346c99c1f96;hpb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b diff --git a/utils/yarandom.c b/utils/yarandom.c index f12ea952..cc38895e 100644 --- a/utils/yarandom.c +++ b/utils/yarandom.c @@ -17,7 +17,7 @@ I don't understand how it works at all, but he says "look at Knuth, Vol. 2 (original edition), page 26, Algorithm A. In this case n=55, - k=20 and m=2^32." + k=24 and m=2^32." So there you have it. @@ -121,5 +121,5 @@ ya_rand_init(unsigned int seed) } i1 = a[0] % VectorSize; - i2 = (i1 + 024) % VectorSize; + i2 = (i1 + 24) % VectorSize; }