aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-28 12:46:16 +0000
committerRichard M. Stallman1994-07-28 12:46:16 +0000
commit8ee9ba64c157cf53bd3662f2232522b78caee354 (patch)
tree0f636b80b26202085c790a41038ab523a695a2a8 /src
parent9f7a8b5dbe9b815735c6dc62c634733bf5455cae (diff)
downloademacs-8ee9ba64c157cf53bd3662f2232522b78caee354.tar.gz
emacs-8ee9ba64c157cf53bd3662f2232522b78caee354.zip
(Frandom): Fix previous change.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c2
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.")
71 it's possible to get a quotient larger than limit; discarding 71 it's possible to get a quotient larger than limit; discarding
72 these values eliminates the bias that would otherwise appear 72 these values eliminates the bias that would otherwise appear
73 when using a large limit. */ 73 when using a large limit. */
74 denominator = (unsigned long)0xc0000000 / XFASTINT (limit); 74 denominator = (unsigned long)0x40000000 / XFASTINT (limit);
75 do 75 do
76 val = (random () & 0x3fffffff) / denominator; 76 val = (random () & 0x3fffffff) / denominator;
77 while (val >= limit); 77 while (val >= limit);