10.46.61 srandom
¶
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/srandom.html
Gnulib module: random
Portability problems fixed by Gnulib:
- This function is missing on some platforms:
mingw, MSVC 14.
- This function is only defined as an inline function on some platforms:
Android 4.4.
Portability problems not fixed by Gnulib:
- This function has a slightly incompatible declaration (the return type being
‘long’ instead of ‘void’) on some platforms:
Cygwin 1.5.25.
- The parameter is
unsigned long
instead of unsigned int
on some
platforms:
MidnightBSD 2.0.
- This function has no effect on some platforms:
OpenBSD 7.4.
This platform has, instead, a function
srandom_deterministic
.