random: Use getentropy when available for not GNU/Linux.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 15 Jan 2019 04:53:45 +0000 (13:53 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 15 Jan 2019 04:53:45 +0000 (13:53 +0900)
commit2677d7d482bf2d078c1dce64854747c5b148924b
treefcc258903e51fe142cad39a92fce2bfd77105b1f
parent09c27280cc09798d15369b3a143036b7ab5ddd69
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: 4288
Reported-by: David Carlier
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
configure.ac
random/rndlinux.c