aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/rand48.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/rand48.c')
-rw-r--r--newlib/libc/stdlib/rand48.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/rand48.c b/newlib/libc/stdlib/rand48.c
index c65af12..17fd04e 100644
--- a/newlib/libc/stdlib/rand48.c
+++ b/newlib/libc/stdlib/rand48.c
@@ -163,6 +163,7 @@ _DEFUN (__dorand48, (r, xseed),
unsigned long accu;
unsigned short temp[2];
+ _REENT_CHECK_RAND48(r);
accu = (unsigned long) __rand48_mult[0] * (unsigned long) xseed[0] +
(unsigned long) __rand48_add;
temp[0] = (unsigned short) accu; /* lower 16 bits */