Re: Issue in man page random_r.3

Alejandro Colomar
2025-12-25T20:42:53Z

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

Hi Helge,

On Wed, Dec 24, 2025 at 02:38:24PM +0000, Helge Kreutzmann wrote:
> Without further ado, the following was found:
>
> Issue: The function prototype above do not mention I<state>?
>
> "The B<setstate_r>() function is like B<setstate>(3), except that it "
> "modifies the state in the object pointed to by I<buf>, rather than modifying "
> "the global state variable. I<state> must first have been initialized using "
> "B<initstate_r>() or be the result of a previous call of B<setstate_r>()."

I still have no clue of what that means. We'll have to continue living
in ignorance until someone who knows this set of APIs comes and fixes
the documentation. I've never used random_r(3) myself, so I can't help.

Have a lovely night!
Alex

--
<https://www.alejandro-colomar.es>