Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8ee9ba64
Commit
8ee9ba64
authored
Jul 28, 1994
by
Richard M. Stallman
Browse files
(Frandom): Fix previous change.
parent
9f7a8b5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/fns.c
src/fns.c
+1
-1
No files found.
src/fns.c
View file @
8ee9ba64
...
...
@@ -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
)
0x
c
0000000
/
XFASTINT
(
limit
);
denominator
=
(
unsigned
long
)
0x
4
0000000
/
XFASTINT
(
limit
);
do
val
=
(
random
()
&
0x3fffffff
)
/
denominator
;
while
(
val
>=
limit
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment