Mercurial > dropbear
changeset 1716:6ea18ca8fc03
Delay seedrandom until connections
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 15 Jun 2020 22:24:34 +0800 |
parents | 3974f087d9c0 |
children | 295377ecbf49 |
files | svr-main.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/svr-main.c Mon Jun 15 18:22:18 2020 +0500 +++ b/svr-main.c Mon Jun 15 22:24:34 2020 +0800 @@ -80,9 +80,11 @@ 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 @@ /* 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 */