From d24608f995e83aa4ac5557cd1a084cac55a71a3c Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 29 Nov 2005 00:50:10 +0000 Subject: Hiding again --- libc/stdlib/random.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libc/stdlib/random.c') diff --git a/libc/stdlib/random.c b/libc/stdlib/random.c index b0a00e15c..833877039 100644 --- a/libc/stdlib/random.c +++ b/libc/stdlib/random.c @@ -22,6 +22,9 @@ * Rewritten to use reentrant functions by Ulrich Drepper, 1995. */ +#define random_r __random_r +#define srandom_r __srandom_r + #define _GNU_SOURCE #include #include @@ -243,7 +246,7 @@ char * setstate (char *arg_state) rear pointers can't wrap on the same call by not testing the rear pointer if the front one has wrapped. Returns a 31-bit random number. */ -long int random () +long int attribute_hidden __random () { int32_t retval; @@ -252,4 +255,4 @@ long int random () __pthread_mutex_unlock(&lock); return retval; } - +strong_alias(__random,random) -- cgit v1.2.3