diff options
author | Justus Winter <justus@g10code.com> | 2015-12-02 11:54:40 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2015-12-02 11:54:40 +0100 |
commit | 468a5796ffb1a7776db4004d534376c1b981d740 (patch) | |
tree | c7ebbf9d1e597b81f975d08f99683533c9d7b868 /random | |
parent | 3658afd09c3b03b4398aaa5748387220c93b1a94 (diff) | |
download | libgcrypt-468a5796ffb1a7776db4004d534376c1b981d740.tar.gz |
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>
Diffstat (limited to 'random')
-rw-r--r-- | random/random-csprng.c | 4 |
1 files 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. |