summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-03-19 09:38:15 +1100
committerDamien Miller <djm@mindrot.org>2001-03-19 09:38:15 +1100
commit60bc51735643baa1b7fb237ea56303fed454dadb (patch)
tree8ece761df99755046be27984f4ea8dcbca1d99d5 /ssh.c
parentb399be4436914e23dd066482a371e068f2724f5c (diff)
- (djm) Seed PRNG at startup, rather than waiting for arc4random calls to
do it implicitly.
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh.c b/ssh.c
index 74a2b75ac..c47d3dc05 100644
--- a/ssh.c
+++ b/ssh.c
@@ -576,6 +576,8 @@ main(int ac, char **av)
576 /* reinit */ 576 /* reinit */
577 log_init(av[0], options.log_level, SYSLOG_FACILITY_USER, 1); 577 log_init(av[0], options.log_level, SYSLOG_FACILITY_USER, 1);
578 578
579 seed_rng();
580
579 if (options.user == NULL) 581 if (options.user == NULL)
580 options.user = xstrdup(pw->pw_name); 582 options.user = xstrdup(pw->pw_name);
581 583