mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Only read /dev/random once when the program starts
rather than for every connection, to "conserve entropy". --HG-- extra : convert_revision : 21df240b71c0af8454725dec9abb428dd4bb97a2
This commit is contained in:
@@ -78,7 +78,9 @@ void svr_session(int sock, int childpipe,
|
||||
char* remotehost, char *addrstring) {
|
||||
|
||||
struct timeval timeout;
|
||||
|
||||
|
||||
reseedrandom();
|
||||
|
||||
crypto_init();
|
||||
common_session_init(sock, remotehost);
|
||||
|
||||
@@ -110,8 +112,6 @@ void svr_session(int sock, int childpipe,
|
||||
/* exchange identification, version etc */
|
||||
session_identification();
|
||||
|
||||
seedrandom();
|
||||
|
||||
/* start off with key exchange */
|
||||
send_msg_kexinit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user