changeset 8699:0f741bd35379

(random, srandom): Check HAVE_LRAND48, not HAVE_RAND48. Call lrand48, nor rand48.
author Richard M. Stallman <rms@gnu.org>
date Sun, 04 Sep 1994 07:01:28 +0000
parents cb28e33e5114
children c9b81faf1b2a
files src/sysdep.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Sun Sep 04 07:00:46 1994 +0000
+++ b/src/sysdep.c	Sun Sep 04 07:01:28 1994 +0000
@@ -2614,8 +2614,8 @@
 long
 random ()
 {
-#ifdef HAVE_RAND48
-  return rand48 ();
+#ifdef HAVE_LRAND48
+  return lrand48 ();
 #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 @@
 srandom (arg)
      int arg;
 {
-#ifdef HAVE_RAND48
+#ifdef HAVE_LRAND48
   return srand48 ();
 #else
   srand (arg);