From 16bf528dc243f86776a443cba84866cfd7d2027e Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 5 Jun 2016 15:46:14 +0000 Subject: [PATCH] Reflect error indication according to POSIX and what those functions currently do. --- lib/libc/stdlib/random.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3 index 254be0a3a07..a7f552c32f4 100644 --- a/lib/libc/stdlib/random.3 +++ b/lib/libc/stdlib/random.3 @@ -174,8 +174,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 ,