mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
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:
@@ -871,7 +871,7 @@ static void execchild(void *user_data) {
|
||||
svr_opts.hostkey = NULL;
|
||||
|
||||
/* overwrite the prng state */
|
||||
reseedrandom();
|
||||
seedrandom();
|
||||
#endif
|
||||
|
||||
/* clear environment */
|
||||
|
||||
Reference in New Issue
Block a user