From: Richard M. Stallman Date: Sun, 4 Sep 1994 07:01:28 +0000 (+0000) Subject: (random, srandom): Check HAVE_LRAND48, not HAVE_RAND48. X-Git-Tag: emacs-19.34~7155 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8063726f3192e978f334c4806a5b6ba168aa4242;p=emacs.git (random, srandom): Check HAVE_LRAND48, not HAVE_RAND48. Call lrand48, nor rand48. --- 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! */ 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 @@ random () srandom (arg) int arg; { -#ifdef HAVE_RAND48 +#ifdef HAVE_LRAND48 return srand48 (); #else srand (arg);