summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-05-02 00:03:55 +1000
committerDamien Miller <djm@mindrot.org>2000-05-02 00:03:55 +1000
commitfc0b11b5aa95f43109b384c6c752d2c20963c31a (patch)
treec9d85b50b10e2b561401a3f8f7d5576549f3dae1 /entropy.c
parent7c0042629e1dfe12f42c3355cc843e269e50b914 (diff)
- Irix portability fixes - don't include netinet headers more than once
- Make sure we don't save PRNG seed more than once
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",