]> git.eshelyaron.com Git - emacs.git/commitdiff
(Frandom): Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Thu, 28 Jul 1994 12:46:16 +0000 (12:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 28 Jul 1994 12:46:16 +0000 (12:46 +0000)
src/fns.c

index 59dd3b7eeea535d47332e76706d543b6b8e7d36f..c91710b7c10b5b3cda23073583384276cd4bb1a9 100644 (file)
--- 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);