diff options
Diffstat (limited to 'gensignkey.c')
-rw-r--r-- | gensignkey.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gensignkey.c b/gensignkey.c index 5726249..88a3949 100644 --- a/gensignkey.c +++ b/gensignkey.c @@ -85,6 +85,8 @@ int signkey_generate(enum signkey_type keytype, int bits, const char* filename) /* now we can generate the key */ key = new_sign_key(); + seedrandom(); + switch(keytype) { #ifdef DROPBEAR_RSA case DROPBEAR_SIGNKEY_RSA: @@ -112,6 +114,8 @@ int signkey_generate(enum signkey_type keytype, int bits, const char* filename) dropbear_exit("Internal error"); } + seedrandom(); + buf = buf_new(MAX_PRIVKEY_SIZE); buf_put_priv_key(buf, key, keytype); |