diff options
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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", |