diff svr-session.c @ 687:167fdc091c05

Improve RNG seeding. Try to read from /dev/urandom multiple times, take input from extra sources, and use /dev/random when generating private keys
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Jun 2012 23:19:43 +0800
parents c519b78b6d1a
children 78eda530c000 eafdf8b363f5 d1575fdc29a6
line wrap: on
line diff
--- a/svr-session.c	Thu May 17 00:26:12 2012 +0800
+++ b/svr-session.c	Fri Jun 29 23:19:43 2012 +0800
@@ -75,7 +75,6 @@
 void svr_session(int sock, int childpipe) {
 	char *host, *port;
 	size_t len;
-    reseedrandom();
 
 	crypto_init();
 	common_session_init(sock, sock);