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
path: root/newlib
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
parent56ec0f9c9c9dbc1e619828be66f961b4fae364a9 (diff)
2006-09-12 Paul Brook <paul@codesourcery.com>
* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/stdlib/rand.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 9c9d8d221..b313eff0e 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
+2006-09-12 Paul Brook <paul@codesourcery.com>
+
+ * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
+
2006-09-07 Masaki Muranaka <monaka@monami-software.com>
+
* libc/machine/xstormy16/Makefile.am:
Add $(lpfx) prefix to LIBADD objects.
lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
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