Mercurial > emacs
diff src/sysdep.c @ 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 | 10ec51f5e4b0 |
| children | 097fe97274e9 |
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);
