10.46.22 initstate
¶
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/initstate.html
Gnulib module: random
Portability problems fixed by Gnulib:
- This function is missing on some platforms:
mingw, MSVC 14, Android 4.4.
- This function is not declared on some platforms:
Cygwin 1.5.25.
Portability problems not fixed by Gnulib:
- This function crashes if the state buffer is unaligned on some platforms:
glibc 2.36/sparc.
- The first parameter is
unsigned long
instead of unsigned int
on
some platforms:
MidnightBSD 2.0.
- The third parameter is
long
instead of size_t
on some platforms:
MidnightBSD 2.0.
- This function makes out-of-bounds writes on some platforms:
Haiku.