diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-06-15 22:24:34 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-06-15 22:24:34 +0800 |
commit | 75b2f631e37e4572b92e06296f2e9f0d2801b470 (patch) | |
tree | 7839d307636e0f7d956bf09d96d29d51c3829cae | |
parent | 55062df703975bbbf2256fd21e49d33ae953edb9 (diff) | |
download | dropbear-75b2f631e37e4572b92e06296f2e9f0d2801b470.tar.gz |
Delay seedrandom until connections
-rw-r--r-- | svr-main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -80,9 +80,11 @@ int main(int argc, char ** argv) static void main_inetd() { char *host, *port = NULL; - /* Set up handlers, syslog, seed random */ + /* Set up handlers, syslog */ commonsetup(); + seedrandom(); + #if DEBUG_TRACE if (debug_trace) { /* -v output goes to stderr which would get sent over the inetd network socket */ @@ -399,8 +401,6 @@ static void commonsetup() { /* Now we can setup the hostkeys - needs to be after logging is on, * otherwise we might end up blatting error messages to the socket */ load_all_hostkeys(); - - seedrandom(); } /* Set up listening sockets for all the requested ports */ |