Add GRND_INSECURE from Linux 5.6 to sys/random.h
commit319d2a7b60cc0d06bb5c29684c23475d41a7f8b7
authorJoseph Myers <joseph@codesourcery.com>
Thu, 9 Apr 2020 21:21:16 +0000 (9 21:21 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 9 Apr 2020 21:21:16 +0000 (9 21:21 +0000)
tree04e8807b5fe64ee1d0ec968cd6bb4bdd7d2f8919
parentb56875d5e06e869b1a7f4408b68cb74544c094b0
Add GRND_INSECURE from Linux 5.6 to sys/random.h

This patch adds the GRND_INSECURE constant from Linux 5.6 to glibc's
sys/random.h.  This is also added to the documentation.  The constant
acts as a no-op for the Hurd implementation (as that doesn't check
whether the flags are known), which is semantically fine, while older
Linux kernels reject unknown flags with an EINVAL error.

Tested for x86_64.
manual/crypt.texi
stdlib/sys/random.h