summaryrefslogtreecommitdiffstats
path: root/cipher/random.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-12-12 18:44:34 +0100
committerWerner Koch <wk@gnupg.org>1998-12-12 18:44:34 +0100
commite5666c8fef9cc25ae60bcfdf42d6c048423e09fe (patch)
tree4823320854266c4e5cfca97bb6d2fc151925e9a1 /cipher/random.c
parentSee ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner Koch (diff)
downloadgnupg2-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.c2
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 */