summaryrefslogtreecommitdiffstats
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-01-29 23:37:06 +0100
committerDamien Miller <djm@mindrot.org>2002-01-29 23:37:06 +0100
commit8eb71417584914688f89a77170642c8ce58b1a3e (patch)
treec6c5ab43ed3d426e41be699a236207ed69bb8f0c /ssh-keygen.c
parentFix spec file version numbers (diff)
downloadopenssh-8eb71417584914688f89a77170642c8ce58b1a3e.tar.xz
openssh-8eb71417584914688f89a77170642c8ce58b1a3e.zip
- (djm) Delay PRNG seeding until we need it in ssh-keygen, from markus@
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 49137fbeb..def487eea 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -847,8 +847,6 @@ main(int ac, char **av)
extern char *optarg;
__progname = get_progname(av[0]);
- init_rng();
- seed_rng();
SSLeay_add_all_algorithms();
@@ -964,6 +962,8 @@ main(int ac, char **av)
#endif /* SMARTCARD */
}
+ init_rng();
+ seed_rng();
arc4random_stir();
if (key_type_name == NULL) {