diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-09-12 17:31:40 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-09-12 17:31:40 +0000 |
commit | 8f9f25dad8e03228f8fb714b4f1500136b5a9c3e (patch) | |
tree | 06ad38a91eb99561b9365ccd249f378f3ea517dc /newlib/libc/stdlib/rand.c | |
parent | 56ec0f9c9c9dbc1e619828be66f961b4fae364a9 (diff) | |
download | newlib-8f9f25dad8e03228f8fb714b4f1500136b5a9c3e.zip newlib-8f9f25dad8e03228f8fb714b4f1500136b5a9c3e.tar.gz newlib-8f9f25dad8e03228f8fb714b4f1500136b5a9c3e.tar.bz2 |
2006-09-12 Paul Brook <paul@codesourcery.com>
* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
Diffstat (limited to 'newlib/libc/stdlib/rand.c')
-rw-r--r-- | newlib/libc/stdlib/rand.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/rand.c b/newlib/libc/stdlib/rand.c index 6a46aa8..131e5cf 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 |