random: Fix selection of entropy gathering function.
authorJustus Winter <justus@g10code.com>
Wed, 2 Dec 2015 10:54:40 +0000 (11:54 +0100)
committerJustus Winter <justus@g10code.com>
Wed, 2 Dec 2015 10:54:40 +0000 (11:54 +0100)
commit468a5796ffb1a7776db4004d534376c1b981d740
treec7ebbf9d1e597b81f975d08f99683533c9d7b868
parent3658afd09c3b03b4398aaa5748387220c93b1a94
random: Fix selection of entropy gathering function.

* random/random-csprng.c (getfnc_gather_random): Do return NULL if no
usable entropy gathering function is found.  The callsite then
installs the fake gather function.

Signed-off-by: Justus Winter <justus@g10code.com>
random/random-csprng.c