2006-09-12 Paul Brook <paul@codesourcery.com>

* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
This commit is contained in:
Jeff Johnston 2006-09-12 17:31:40 +00:00
parent 56ec0f9c9c
commit 8f9f25dad8
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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