# HG changeset patch # User Matt Johnston # Date 1592231074 -28800 # Node ID 6ea18ca8fc03d9b42b162f1471cb763bdc52905c # Parent 3974f087d9c0c0b526736776b4b8684f1cc74469 Delay seedrandom until connections diff -r 3974f087d9c0 -r 6ea18ca8fc03 svr-main.c --- 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 */