diff options
author | Damien Miller <djm@mindrot.org> | 2001-01-16 23:37:15 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-01-16 23:37:15 +0100 |
commit | 21de45085360271197f24b872320fa231c96810b (patch) | |
tree | d7bb68f74c1d0881d9a25357685c4382db81ecd7 /entropy.c | |
parent | - (bal) utimes() support via utime() interface on machine that lack utimes(). (diff) | |
download | openssh-21de45085360271197f24b872320fa231c96810b.tar.xz openssh-21de45085360271197f24b872320fa231c96810b.zip |
- (djm) Only write random seed file at exit
Diffstat (limited to '')
-rw-r--r-- | entropy.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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; } |