2006-09-12 Paul Brook <paul@codesourcery.com>
* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user