Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-09-12 21:31:40 +0400
committerJeff Johnston <jjohnstn@redhat.com>2006-09-12 21:31:40 +0400
commit8f9f25dad8e03228f8fb714b4f1500136b5a9c3e (patch)
tree06ad38a91eb99561b9365ccd249f378f3ea517dc /newlib/libc/stdlib/rand.c
parent56ec0f9c9c9dbc1e619828be66f961b4fae364a9 (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
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