aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-04 07:01:28 +0000
committerRichard M. Stallman1994-09-04 07:01:28 +0000
commit8063726f3192e978f334c4806a5b6ba168aa4242 (patch)
tree0c1e5f426f71f17bdcc036311b8087ffed13472d /src
parent19dd4ea71c055f6d2b411c86326ea1b7da213d72 (diff)
downloademacs-8063726f3192e978f334c4806a5b6ba168aa4242.tar.gz
emacs-8063726f3192e978f334c4806a5b6ba168aa4242.zip
(random, srandom): Check HAVE_LRAND48, not HAVE_RAND48.
Call lrand48, nor rand48.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 5b179453deb..004a0b95676 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2614,8 +2614,8 @@ bcmp (b1, b2, length) /* This could be a macro! */
2614long 2614long
2615random () 2615random ()
2616{ 2616{
2617#ifdef HAVE_RAND48 2617#ifdef HAVE_LRAND48
2618 return rand48 (); 2618 return lrand48 ();
2619#else 2619#else
2620/* The BSD rand returns numbers in the range of 0 to 2e31 - 1, 2620/* The BSD rand returns numbers in the range of 0 to 2e31 - 1,
2621 with unusable least significant bits. The USG rand returns 2621 with unusable least significant bits. The USG rand returns
@@ -2632,7 +2632,7 @@ random ()
2632srandom (arg) 2632srandom (arg)
2633 int arg; 2633 int arg;
2634{ 2634{
2635#ifdef HAVE_RAND48 2635#ifdef HAVE_LRAND48
2636 return srand48 (); 2636 return srand48 ();
2637#else 2637#else
2638 srand (arg); 2638 srand (arg);