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>
Tue, 26 Apr 2016 13:46:30 +0000 (15:46 +0200)
commitee5a32226a7ca4ab067864e06623fc11a1768900
treec4253ace6b719511c4a54bce25a639abb079069a
parent4545372c0f8dd35aef2a7abc12b588ed1a4a0363
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