| @node random | |
| @subsection @code{random} | |
| @findex random | |
| POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/random.html} | |
| Gnulib module: random | |
| @mindex random | |
| Portability problems fixed by Gnulib: | |
| @itemize | |
| @item | |
| This function is missing on some platforms: | |
| mingw, MSVC 14. | |
| @item | |
| This function is only defined as an inline function on some platforms: | |
| Android 4.4. | |
| @item | |
| This function is not multithread-safe on some platforms: | |
| macOS 14, FreeBSD 13.2, Solaris 11.4, Cygwin 3.4.6, Haiku. | |
| @end itemize | |
| Portability problems not fixed by Gnulib: | |
| @itemize | |
| @item | |
| This function has a slightly incompatible declaration (the return type being | |
| @samp{int} instead of @samp{long}) on some platforms: | |
| Cygwin 1.5.25, Haiku. | |
| @item | |
| When @samp{srandom} was not called, this function returns a non-deterministic | |
| sequence rather than a deterministic sequence of numbers on some platforms: | |
| OpenBSD 7.4. | |
| @end itemize |