summaryrefslogtreecommitdiffstats
path: root/entropy.c
diff options
context:
space:
mode:
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/entropy.c b/entropy.c
index edf14233..2766d90b 100644
--- a/entropy.c
+++ b/entropy.c
@@ -35,7 +35,7 @@
#include <openssl/rand.h>
#include <openssl/sha.h>
-RCSID("$Id: entropy.c,v 1.6 2000/04/29 23:30:46 damien Exp $");
+RCSID("$Id: entropy.c,v 1.7 2000/05/01 14:03:56 damien Exp $");
#ifdef EGD_SOCKET
#ifndef offsetof
@@ -520,6 +520,8 @@ prng_write_seedfile(void) {
if (prng_seed_saved)
return;
+ prng_seed_saved = 1;
+
pw = getpwuid(getuid());
if (pw == NULL)
fatal("Couldn't get password entry for current user (%i): %s",