diff options
author | Paul Brook <paul@codesourcery.com> | 2006-09-20 16:56:02 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-09-20 16:56:02 +0000 |
commit | 51172826e0dcace6fec478d1727ee53914b6f0a6 (patch) | |
tree | 72550fc0c5923a24aab94b74099e2dec7f04f4d9 | |
parent | 34784e1c43736a2e46eb64ec3fd698d61ad487b4 (diff) | |
download | cygnal-51172826e0dcace6fec478d1727ee53914b6f0a6.tar.gz cygnal-51172826e0dcace6fec478d1727ee53914b6f0a6.tar.bz2 cygnal-51172826e0dcace6fec478d1727ee53914b6f0a6.zip |
2006-09-20 Paul Brook <paul@codesourcery.com>
newlib/
* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
-rw-r--r-- | ChangeLog.csl | 5 | ||||
-rw-r--r-- | newlib/libc/stdlib/rand.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index da32283d2..6682c1382 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,8 @@ +2006-09-20 Paul Brook <paul@codesourcery.com> + + newlib/ + * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48. + 2006-09-18 Nathan Sidwell <nathan@codesourcery.com> libgloss/ 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 |