mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Delay seedrandom until connections
This commit is contained in:
parent
2301b6ac0b
commit
78c5daee52
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user