diff options
author | Werner Koch <wk@gnupg.org> | 1998-12-12 18:44:34 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-12-12 18:44:34 +0100 |
commit | e5666c8fef9cc25ae60bcfdf42d6c048423e09fe (patch) | |
tree | 4823320854266c4e5cfca97bb6d2fc151925e9a1 /cipher/random.c | |
parent | See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner Koch (diff) | |
download | gnupg2-e5666c8fef9cc25ae60bcfdf42d6c048423e09fe.tar.xz gnupg2-e5666c8fef9cc25ae60bcfdf42d6c048423e09fe.zip |
See ChangeLog: Sat Dec 12 18:40:32 CET 1998 Werner Koch
Diffstat (limited to 'cipher/random.c')
-rw-r--r-- | cipher/random.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cipher/random.c b/cipher/random.c index 32415bd0b..699f76994 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -395,6 +395,8 @@ read_random_source( byte *buffer, size_t length, int level ) while( length ) { nbytes = length; goodness = (*fnc)( buffer, &nbytes, level ); + if( goodness < 0 ) + log_fatal("No way to gather entropy for the RNG\n"); buffer +=nbytes; length -= nbytes; /* FIXME: how can we handle the goodness */ |