Home GnuPG

random: Try to use getrandom() instead of /dev/urandom (Linux only).
ee5a32226a7cUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

random: Try to use getrandom() instead of /dev/urandom (Linux only).

* configure.ac: Check for syscall.
* random/rndlinux.c [HAVE_SYSCALL]: Include sys/syscall.h.
(_gcry_rndlinux_gather_random): Use getrandom is available.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 26 2016, 3:46 PM
Parents
rC4545372c0f8d: asm fix for older gcc versions.
Branches
Unknown
Tags
Unknown

Event Timeline