From d5ccc32b4d8903562107a534fbe09433c27d2880 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 29 Jun 2012 23:19:43 +0800 Subject: Improve RNG seeding. Try to read from /dev/urandom multiple times, take input from extra sources, and use /dev/random when generating private keys --- gendss.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gendss.c') diff --git a/gendss.c b/gendss.c index 5abb4d8..0786672 100644 --- a/gendss.c +++ b/gendss.c @@ -57,6 +57,7 @@ dropbear_dss_key * gen_dss_priv_key(unsigned int size) { m_mp_init_multi(key->p, key->q, key->g, key->y, key->x, NULL); seedrandom(); + seedstrongrandom(); getq(key); getp(key, size); -- cgit v1.2.3