Commit 8ee9ba64 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Frandom): Fix previous change.

parent 9f7a8b5d
......@@ -71,7 +71,7 @@ With argument t, set the random number seed from the current time and pid.")
it's possible to get a quotient larger than limit; discarding
these values eliminates the bias that would otherwise appear
when using a large limit. */
denominator = (unsigned long)0xc0000000 / XFASTINT (limit);
denominator = (unsigned long)0x40000000 / XFASTINT (limit);
val = (random () & 0x3fffffff) / denominator;
while (val >= limit);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment