summaryrefslogtreecommitdiffhomepage
path: root/svr-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-06-15 22:24:34 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-06-15 22:24:34 +0800
commit78c5daee52d979de75678b4a6e2a2cda0000e871 (patch)
treebac1a092fdcd33203f8f3c7f574ca2f1047e2a02 /svr-main.c
parent2301b6ac0ba733ea95d723630bbb610195d1527a (diff)
Delay seedrandom until connections
Diffstat (limited to 'svr-main.c')
-rw-r--r--svr-main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/svr-main.c b/svr-main.c
index 9b3a162..52ac9ff 100644
--- a/svr-main.c
+++ b/svr-main.c
@@ -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 */