random.3: BUGS: inistate() does not return NULL on error

http://sourceware.org/bugzilla/show_bug.cgi?id=15380

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-04-19 10:01:02 +02:00
parent d2fdbe9c99
commit e6183193f2
1 changed files with 8 additions and 0 deletions

View File

@ -177,6 +177,14 @@ in depth, see Chapter 3 (Random Numbers) in Donald E. Knuth's
.IR "The Art of Computer Programming" ,
volume 2 (Seminumerical Algorithms), 2nd ed.; Reading, Massachusetts:
Addison-Wesley Publishing Company, 1981.
.SH BUGS
According to POSIX,
.BR initstate ()
should return NULL on error.
In the glibc implementation,
.I errno
is (as specified) set on error, but the function does not return NULL.
.\" http://sourceware.org/bugzilla/show_bug.cgi?id=15380
.SH SEE ALSO
.BR drand48 (3),
.BR rand (3),