Improve RNG seeding.

Try to read from /dev/urandom multiple times, take input from extra sources,
and use /dev/random when generating private keys
This commit is contained in:
Matt Johnston
2012-06-29 23:19:43 +08:00
parent db34044c7f
commit d5ccc32b4d
10 changed files with 171 additions and 108 deletions

View File

@@ -871,7 +871,7 @@ static void execchild(void *user_data) {
svr_opts.hostkey = NULL;
/* overwrite the prng state */
reseedrandom();
seedrandom();
#endif
/* clear environment */