From 468a5796ffb1a7776db4004d534376c1b981d740 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 2 Dec 2015 11:54:40 +0100 Subject: 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 --- random/random-csprng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/random/random-csprng.c b/random/random-csprng.c index dbebe98f..88c5ff85 100644 --- a/random/random-csprng.c +++ b/random/random-csprng.c @@ -1151,9 +1151,9 @@ getfnc_gather_random (void))(void (*)(const void*, size_t, return fnc; #endif - log_fatal (_("no entropy gathering module detected\n")); + log_info (_("no entropy gathering module detected\n")); - return NULL; /*NOTREACHED*/ + return NULL; } /* Runtime determination of the fast entropy gathering function. -- cgit v1.2.1