diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-11-12 23:02:32 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-11-12 23:02:32 +0800 |
commit | e60a84d0ed81365a4ac24f06d574b7accb6ab2bd (patch) | |
tree | 87045d7ef102f381be34e53940b32438d3599e77 /gensignkey.c | |
parent | f025277147104ae0de018ab139a6ece9709ebdde (diff) |
Various cleanups and fixes for warnings
--HG--
branch : ecc
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); |