diff options
author | Edward Ned Harvey <edward.harvey@conceptblossom.com> | 2014-08-05 11:07:33 -0400 |
---|---|---|
committer | Edward Ned Harvey <edward.harvey@conceptblossom.com> | 2014-08-05 11:07:33 -0400 |
commit | 66cfe2970d6cc02f10fce030fbc0b6f8cb8ece5a (patch) | |
tree | 3f794de98c4453147969c70605bb8a88c412ecdb /crypto/src/security/SecureRandom.cs | |
parent | use CryptoApiRandomGenerator in addition to other entropy sources (diff) | |
download | BouncyCastle.NET-ed25519-66cfe2970d6cc02f10fce030fbc0b6f8cb8ece5a.tar.xz |
SecureRandom ctor: given this is a sha1Generator, seed with 20 bytes instead of 8
Diffstat (limited to '')
-rw-r--r-- | crypto/src/security/SecureRandom.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/security/SecureRandom.cs b/crypto/src/security/SecureRandom.cs index ed0193e8d..055162f1f 100644 --- a/crypto/src/security/SecureRandom.cs +++ b/crypto/src/security/SecureRandom.cs @@ -80,7 +80,7 @@ namespace Org.BouncyCastle.Security public SecureRandom() : this(sha1Generator) { - SetSeed(GetSeed(8)); + SetSeed(GetSeed(20)); // 20 bytes because this is sha1Generator } public SecureRandom( |