diff svr-chansession.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 405418f7dc5e
children bcfa7f779531
line wrap: on
line diff
--- a/svr-chansession.c	Thu May 17 00:26:12 2012 +0800
+++ b/svr-chansession.c	Fri Jun 29 23:19:43 2012 +0800
@@ -871,7 +871,7 @@
 	svr_opts.hostkey = NULL;
 
 	/* overwrite the prng state */
-	reseedrandom();
+	seedrandom();
 #endif
 
 	/* clear environment */