summaryrefslogtreecommitdiff
path: root/doc/glibc-functions/getrandom.texi
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-05-31 18:47:12 +0200
committerBruno Haible <bruno@clisp.org>2020-05-31 18:47:12 +0200
commit9de2f9ad0a12f0c048e9c9e573f77f35288f0c43 (patch)
treef91d6a21a805d80dc6c9616e29328a1786c71769 /doc/glibc-functions/getrandom.texi
parent8175e3ddda29a03d5e0aec4a1774339414996565 (diff)
downloadgnulib-9de2f9ad0a12f0c048e9c9e573f77f35288f0c43.tar.gz
getrandom: Doc and test tweaks.
* lib/getrandom.c (getrandom): Mention that it never returns 0, and that it sets errno when failing. * tests/test-getrandom.c (main): Disable the high-quality check on those platforms on which it fails. * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX, Cygwin to the list of platforms that don't have the function. Add a note about the quality of the result. * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom' declaration; this is fixed by module 'getrandom'.
Diffstat (limited to 'doc/glibc-functions/getrandom.texi')
-rw-r--r--doc/glibc-functions/getrandom.texi8
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/glibc-functions/getrandom.texi b/doc/glibc-functions/getrandom.texi
index 99712c77b7..3baf3905e2 100644
--- a/doc/glibc-functions/getrandom.texi
+++ b/doc/glibc-functions/getrandom.texi
@@ -21,8 +21,7 @@ Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
-glibc 2.24, Mac OS X 10.5, FreeBSD 11.0, NetBSD 5.0, OpenBSD 3.8,
-Solaris 11.0, mingw, MSVC 14, Android 9.0.
+glibc 2.24, Mac OS X 10.5, FreeBSD 11.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.0, Cygwin, mingw, MSVC 14, Android 9.0.
@item
This function has a different return type on some platforms:
Solaris 11.4.
@@ -30,7 +29,6 @@ Solaris 11.4.
Portability problems not fixed by Gnulib:
@itemize
-@item
-This function is missing on some platforms:
-Minix 3.1.8, IRIX 6.5.
+This function cannot produce truly random numbers on some platforms:
+GNU/Hurd, Mac OS X, GNU/kFreeBSD, FreeBSD 12.0, OpenBSD 6.5, Minix 3.3, AIX 7.1, Haiku, mingw, MSVC 14.
@end itemize