diff options
-rw-r--r-- | random-seed.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/random-seed.c b/random-seed.c index 114f8fa..cb6071a 100644 --- a/random-seed.c +++ b/random-seed.c @@ -236,6 +236,11 @@ static bool load(FILE *seed_file) { } } + if (!linenum) { + fputs("seed file has no commands, assuming legacy format. disabling entropy credit\n", stderr); + credit_entropy = false; + } + if (credit_entropy && !done) { fputs("missing done command, random seed file probably truncated. disabling entropy credit\n", stderr); credit_entropy = false; |