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
8063726f
Commit
8063726f
authored
Sep 04, 1994
by
Richard M. Stallman
Browse files
(random, srandom): Check HAVE_LRAND48, not HAVE_RAND48.
Call lrand48, nor rand48.
parent
19dd4ea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/sysdep.c
src/sysdep.c
+3
-3
No files found.
src/sysdep.c
View file @
8063726f
...
...
@@ -2614,8 +2614,8 @@ bcmp (b1, b2, length) /* This could be a macro! */
long
random
()
{
#ifdef HAVE_RAND48
return
rand48
();
#ifdef HAVE_
L
RAND48
return
l
rand48
();
#else
/* The BSD rand returns numbers in the range of 0 to 2e31 - 1,
with unusable least significant bits. The USG rand returns
...
...
@@ -2632,7 +2632,7 @@ random ()
srandom
(
arg
)
int
arg
;
{
#ifdef HAVE_RAND48
#ifdef HAVE_
L
RAND48
return
srand48
();
#else
srand
(
arg
);
...
...
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