random: Try to use getrandom() instead of /dev/urandom (Linux only).
authorWerner Koch <wk@gnupg.org>
Tue, 26 Apr 2016 13:46:30 +0000 (15:46 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 8 Jun 2016 16:17:56 +0000 (18:17 +0200)
commitc05837211e5221d3f56146865e823bc20b4ff1ab
treec4253ace6b719511c4a54bce25a639abb079069a
parentcaa9d14c914bf6116ec3f773a322a94e2be0c0fb
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>
configure.ac
random/rndlinux.c