summary refs log tree commit diff
path: root/stdlib/stdlib.h
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1996-07-09 02:47:42 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1996-07-09 02:47:42 +0000
commitf8fc0dd6495308582e5a098ee4488839779d6c55 (patch)
tree5e1d3c095fb11b9bb6e0b86f4c0950673db0b099 /stdlib/stdlib.h
parent999493cb4a497063c1cb2354a95db21c7ab496f2 (diff)
downloadglibc-f8fc0dd6495308582e5a098ee4488839779d6c55.tar.gz
glibc-f8fc0dd6495308582e5a098ee4488839779d6c55.tar.xz
glibc-f8fc0dd6495308582e5a098ee4488839779d6c55.zip
* stdlib/stdlib.h (random): Declare return type to be int32_t.
Diffstat (limited to 'stdlib/stdlib.h')
-rw-r--r--stdlib/stdlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 876fcc2bb8..1feedcfae3 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -227,14 +227,14 @@ extern __ptr_t __initstate __P ((unsigned int __seed, __ptr_t __statebuf,
    which should have been previously initialized by `initstate'.  */
 extern __ptr_t __setstate __P ((__ptr_t __statebuf));
 
-extern long int random __P ((void));
+extern int32_t random __P ((void));
 extern void srandom __P ((unsigned int __seed));
 extern __ptr_t initstate __P ((unsigned int __seed, __ptr_t __statebuf,
 			       size_t __statelen));
 extern __ptr_t setstate __P ((__ptr_t __statebuf));
 
 #if defined (__OPTIMIZE__) && __GNUC__ >= 2
-extern __inline long int random (void)
+extern __inline int32_t random (void)
 { return __random(); }
 extern __inline void srandom (unsigned int __seed)
 { __srandom(__seed); }