From 8f9f25dad8e03228f8fb714b4f1500136b5a9c3e Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 12 Sep 2006 17:31:40 +0000 Subject: 2006-09-12 Paul Brook * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48. --- newlib/libc/stdlib/rand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newlib/libc/stdlib') diff --git a/newlib/libc/stdlib/rand.c b/newlib/libc/stdlib/rand.c index 6a46aa807..131e5cf09 100644 --- a/newlib/libc/stdlib/rand.c +++ b/newlib/libc/stdlib/rand.c @@ -72,7 +72,8 @@ on two different systems. void _DEFUN (srand, (seed), unsigned int seed) { - _REENT_RAND_NEXT(_REENT) = seed; + _REENT_CHECK_RAND48(_REENT); + _REENT_RAND_NEXT(_REENT) = seed; } int -- cgit v1.2.3