Home GnuPG

random: Use getentropy on macOS when available.

Description

random: Use getentropy on macOS when available.

* random/rndlinux.c [__APPLE__ && __MACH__] (getentropy): Declare.
(_gcry_rndlinux_gather_random): Check the symbol and use getentropy.
  • GnuPG-bug-id: T5268
  • Suggested-by: David Carlier
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jan 27 2021, 5:00 AM
Parents
rCf06ff4e31c8e: mpi: Fix _gcry_mpih_mod implementation.
Branches
Unknown
Tags
Unknown
Tasks
T5268: macOS getentropy