summaryrefslogtreecommitdiffstats
path: root/entropy.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-01-16 23:37:15 +0100
committerDamien Miller <djm@mindrot.org>2001-01-16 23:37:15 +0100
commit21de45085360271197f24b872320fa231c96810b (patch)
treed7bb68f74c1d0881d9a25357685c4382db81ecd7 /entropy.c
parent - (bal) utimes() support via utime() interface on machine that lack utimes(). (diff)
downloadopenssh-21de45085360271197f24b872320fa231c96810b.tar.xz
openssh-21de45085360271197f24b872320fa231c96810b.zip
- (djm) Only write random seed file at exit
Diffstat (limited to '')
-rw-r--r--entropy.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/entropy.c b/entropy.c
index 2929c3fd7..7cbc6951e 100644
--- a/entropy.c
+++ b/entropy.c
@@ -35,7 +35,7 @@
# include <floatingpoint.h>
#endif /* HAVE_FLOATINGPOINT_H */
-RCSID("$Id: entropy.c,v 1.22 2000/11/24 23:09:32 djm Exp $");
+RCSID("$Id: entropy.c,v 1.23 2001/01/16 22:37:15 djm Exp $");
#ifndef offsetof
# define offsetof(type, member) ((size_t) &((type *)0)->member)
@@ -601,12 +601,7 @@ prng_read_seedfile(void) {
debug("loading PRNG seed from file %.100s", filename);
if (!prng_check_seedfile(filename)) {
- verbose("Random seed file not found, creating new");
- prng_write_seedfile();
-
- /* Reseed immediatly */
- (void)stir_from_system();
- (void)stir_from_programs();
+ verbose("Random seed file not found or not valid, ignoring.");
return;
}