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