diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-07-28 12:46:16 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-07-28 12:46:16 +0000 |
commit | 8ee9ba64c157cf53bd3662f2232522b78caee354 (patch) | |
tree | 0f636b80b26202085c790a41038ab523a695a2a8 | |
parent | 9f7a8b5dbe9b815735c6dc62c634733bf5455cae (diff) | |
download | emacs-8ee9ba64c157cf53bd3662f2232522b78caee354.tar.gz emacs-8ee9ba64c157cf53bd3662f2232522b78caee354.tar.bz2 emacs-8ee9ba64c157cf53bd3662f2232522b78caee354.zip |
(Frandom): Fix previous change.
-rw-r--r-- | src/fns.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |