From: Richard M. Stallman Date: Thu, 28 Jul 1994 12:46:16 +0000 (+0000) Subject: (Frandom): Fix previous change. X-Git-Tag: emacs-19.34~7486 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ee9ba64c157cf53bd3662f2232522b78caee354;p=emacs.git (Frandom): Fix previous change. --- diff --git a/src/fns.c b/src/fns.c index 59dd3b7eeea..c91710b7c10 100644 --- a/src/fns.c +++ b/src/fns.c @@ -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); do val = (random () & 0x3fffffff) / denominator; while (val >= limit);