# HG changeset patch # User Richard M. Stallman # Date 778662088 0 # Node ID 0f741bd353797c9a5a2f77149cba5c9e56ae2be4 # Parent cb28e33e5114f0edab1baa00f6c0d6c86abc586a (random, srandom): Check HAVE_LRAND48, not HAVE_RAND48. Call lrand48, nor rand48. diff -r cb28e33e5114 -r 0f741bd35379 src/sysdep.c --- 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);