summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2012-06-29 23:19:43 +0800
committerMatt Johnston <matt@ucc.asn.au>2012-06-29 23:19:43 +0800
commitd5ccc32b4d8903562107a534fbe09433c27d2880 (patch)
tree467f88f9f0d6d85c2be90d2a590504ec10742bba /svr-chansession.c
parentdb34044c7fdfcdf85a2606b686d60910e1ff36b6 (diff)
Improve RNG seeding.
Try to read from /dev/urandom multiple times, take input from extra sources, and use /dev/random when generating private keys
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index b99bf26..88a4b85 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -871,7 +871,7 @@ static void execchild(void *user_data) {
svr_opts.hostkey = NULL;
/* overwrite the prng state */
- reseedrandom();
+ seedrandom();
#endif
/* clear environment */