diff gendss.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 a98a2138364a
children c3de235d9506
line wrap: on
line diff
--- a/gendss.c	Thu May 17 00:26:12 2012 +0800
+++ b/gendss.c	Fri Jun 29 23:19:43 2012 +0800
@@ -57,6 +57,7 @@
 	m_mp_init_multi(key->p, key->q, key->g, key->y, key->x, NULL);
 	
 	seedrandom();
+	seedstrongrandom();
 	
 	getq(key);
 	getp(key, size);