@node initstate_r
@subsection @code{initstate_r}
@findex initstate_r

LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-initstate-r-1.html}

Documentation:
@itemize
@item
@ifinfo
@ref{BSD Random,,BSD Random Number Functions,libc},
@end ifinfo
@ifnotinfo
@url{https://www.gnu.org/software/libc/manual/html_node/BSD-Random.html},
@end ifnotinfo
@item
@uref{https://www.kernel.org/doc/man-pages/online/pages/man3/initstate_r.3.html,,man initstate_r}.
@end itemize

Gnulib module: random_r
@mindex random_r

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
macOS 14, FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Minix 3.1.8, HP-UX 11, Solaris 11.4, Cygwin 2.9, mingw, MSVC 14, Android 9.0.
@item
This function has an incompatible declaration on some platforms:
AIX 7.1.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function crashes if the state buffer is unaligned on some platforms:
@c https://sourceware.org/bugzilla/show_bug.cgi?id=30584
glibc 2.36/sparc.
@item
This function has a slightly different (but compatible) declaration on some
platforms:
Haiku.
@end itemize
