summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2016-06-05 16:21:53 +0000
committerache <ache@FreeBSD.org>2016-06-05 16:21:53 +0000
commit1040e2abb6d69c17df9ac2b20ed5a6615e11d6f9 (patch)
treebeff99f2fd03abb546dda0d1a0411348e8f531e5 /lib
parentd69e829878e35803c4e91e871a82327335d6d82d (diff)
downloadFreeBSD-src-1040e2abb6d69c17df9ac2b20ed5a6615e11d6f9.zip
FreeBSD-src-1040e2abb6d69c17df9ac2b20ed5a6615e11d6f9.tar.gz
MFC: r301448
Reflect error indication according to POSIX and what those functions currently do.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/random.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3
index dc8e961..35b0aa1 100644
--- a/lib/libc/stdlib/random.3
+++ b/lib/libc/stdlib/random.3
@@ -175,8 +175,8 @@ If
.Fn initstate
is called with less than 8 bytes of state information, or if
.Fn setstate
-detects that the state information has been garbled, error
-messages are printed on the standard error output.
+detects that the state information has been garbled,
+NULL is returned.
.Sh SEE ALSO
.Xr arc4random 3 ,
.Xr lrand48 3 ,
OpenPOWER on IntegriCloud