Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Klaus Klein <kleink@netbsd.org>
List: source-changes
Date: 09/09/1998 12:34:01
Module Name:	src
Committed By:	kleink
Date:		Wed Sep  9 19:34:00 UTC 1998

Modified Files:
	src/lib/libc/stdlib: random.c
Log Message:
Addendum to previous commit: remove stdio usage from sections during which
random_mutex is locked, because
* a cancellation point may occur during fprintf(), and no cancellation handler
had been installed, and
* the XSH5 specifcation of these functions does not permit output to stderr.
Therefore, in initstate() and setstate(), return a null pointer if the supplied
state is not valid.  This also fixes a bug in setstate() which caused corrupt
state information being used despite printing an error message.