commit | 60bc51735643baa1b7fb237ea56303fed454dadb | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Mon Mar 19 09:38:15 2001 +1100 |
committer | Damien Miller <djm@mindrot.org> | Mon Mar 19 09:38:15 2001 +1100 |
tree | 8ece761df99755046be27984f4ea8dcbca1d99d5 | |
parent | b399be4436914e23dd066482a371e068f2724f5c [diff] [blame] |
- (djm) Seed PRNG at startup, rather than waiting for arc4random calls to do it implicitly.
diff --git a/ssh.c b/ssh.c index 74a2b75..c47d3dc 100644 --- a/ssh.c +++ b/ssh.c
@@ -576,6 +576,8 @@ /* reinit */ log_init(av[0], options.log_level, SYSLOG_FACILITY_USER, 1); + seed_rng(); + if (options.user == NULL) options.user = xstrdup(pw->pw_name);