diff options
author | Bruno Haible <bruno@clisp.org> | 2020-05-31 21:01:19 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-05-31 21:01:19 +0200 |
commit | d4429157c13b49d1749f5ea18fb30e24ffa646aa (patch) | |
tree | f102673537f9a8fb4c66a2b0b3a1331695e72878 /doc/glibc-functions | |
parent | 117dbe6ecf95c69b72a06474e1f2a1fe421ca9ed (diff) | |
download | gnulib-d4429157c13b49d1749f5ea18fb30e24ffa646aa.tar.gz |
getrandom, getentropy: Mention the crypto/gc-random module.
Suggested by Simon Josefsson in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
* doc/glibc-functions/getrandom.texi: Mention the quality issues and the
crypto/gc-random module.
* doc/glibc-functions/getentropy.texi: Likewise.
Diffstat (limited to 'doc/glibc-functions')
-rw-r--r-- | doc/glibc-functions/getentropy.texi | 6 | ||||
-rw-r--r-- | doc/glibc-functions/getrandom.texi | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/doc/glibc-functions/getentropy.texi b/doc/glibc-functions/getentropy.texi index b7717e514b..998bcf46d6 100644 --- a/doc/glibc-functions/getentropy.texi +++ b/doc/glibc-functions/getentropy.texi @@ -31,3 +31,9 @@ Mac OS X 10.13, Solaris 11.4, Android 9.0. Portability problems not fixed by Gnulib: @itemize @end itemize + +Note: This function does not provides high-quality random numbers, as needed +by some crypto applications. If you want such high-quality random numbers, +use the function @code{getrandom} with the @code{GRND_RANDOM} flag or (better) +use the @samp{crypto/gc-random} module and configure with +@samp{--with-libgcrypt}. diff --git a/doc/glibc-functions/getrandom.texi b/doc/glibc-functions/getrandom.texi index 3baf3905e2..7488f6faaa 100644 --- a/doc/glibc-functions/getrandom.texi +++ b/doc/glibc-functions/getrandom.texi @@ -29,6 +29,12 @@ Solaris 11.4. Portability problems not fixed by Gnulib: @itemize -This function cannot produce truly random numbers on some platforms: +This function cannot produce truly random numbers, even when the +@code{GRND_RANDOM} flag is given, 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 + +Note: This function does not provides high-quality random numbers, as needed +by some crypto applications, even when the @code{GRND_RANDOM} flag is given. +If you want such high-quality random numbers, use the @samp{crypto/gc-random} +module and configure with @samp{--with-libgcrypt}. |