From 4efbcb17e9a66957a286a00eaa4aa85945edf5b6 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 25 Jan 2017 09:00:12 +1300 Subject: [PATCH] random_r.3: Add some usage notes for setstate_r() Signed-off-by: Michael Kerrisk --- man3/random_r.3 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man3/random_r.3 b/man3/random_r.3 index 9c67eed5a..68470b6b9 100644 --- a/man3/random_r.3 +++ b/man3/random_r.3 @@ -105,6 +105,11 @@ function is like except that it modifies the state in the object pointer to by .IR buf , rather than modifying the global state variable. +\fIstate\fP must first have been initialized +using +.BR initstate_r () +or be the result of a previous call of +.BR setstate_r (). .SH RETURN VALUE All of these functions return 0 on success. On error, \-1 is returned, with