changeset 35189:249d8611d11f

(random): Revert the declaration.
author Dave Love <fx@gnu.org>
date Wed, 10 Jan 2001 11:52:57 +0000
parents 94d46968a93f
children b8bdb63c0f6e
files src/sysdep.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Wed Jan 10 08:15:32 2001 +0000
+++ b/src/sysdep.c	Wed Jan 10 11:52:57 2001 +0000
@@ -30,7 +30,12 @@
 /* Including stdlib.h isn't necessarily enough to get srandom
    declared, e.g. without __USE_XOPEN_EXTENDED with glibc 2.  */
 #ifdef HAVE_RANDOM
+#if 0 /* It turns out that defining _OSF_SOURCE in osf5-0.h gets
+	 random prototyped as returning `int'.  It looks to me as
+	 though the best way to DTRT is to prefer the rand48 functions
+	 (per libc.info).  -- fx */
 extern long int random P_ ((void));
+#endif
 #if 0 /* Don't prototype srandom; it takes an unsigned argument on
 	 some systems, and an unsigned long on others, like FreeBSD
 	 4.1.  */