Home GnuPG

random: Use getentropy when available for not GNU/Linux.

Description

random: Use getentropy when available for not GNU/Linux.

* configure.ac: Detect getentropy.
* random/rndlinux.c [__linux__] (getentropy): Macro defined.
[HAVE_GETENTROPY] (_gcry_rndlinux_gather_random): Use getentropy.
  • GnuPG-bug-id: T4288
  • Reported-by: David Carlier
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jan 15 2019, 5:53 AM
Parents
rC09c27280cc09: camellia-aarch64: do not export look-up table globally
Branches
Unknown
Tags
Unknown
Tasks
T4288: Add getrandom support for the BSDs