aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/linux-dp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.threads/linux-dp.c')
-rw-r--r--gdb/testsuite/gdb.threads/linux-dp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.threads/linux-dp.c b/gdb/testsuite/gdb.threads/linux-dp.c
index c3775bd..a57938d 100644
--- a/gdb/testsuite/gdb.threads/linux-dp.c
+++ b/gdb/testsuite/gdb.threads/linux-dp.c
@@ -71,11 +71,10 @@ shared_printf (char *format, ...)
int
shared_random ()
{
- static unsigned int seed;
int result;
pthread_mutex_lock (&random_mutex);
- result = rand_r (&seed);
+ result = rand ();
pthread_mutex_unlock (&random_mutex);
return result;
}