From 66cfe2970d6cc02f10fce030fbc0b6f8cb8ece5a Mon Sep 17 00:00:00 2001 From: Edward Ned Harvey Date: Tue, 5 Aug 2014 11:07:33 -0400 Subject: SecureRandom ctor: given this is a sha1Generator, seed with 20 bytes instead of 8 --- crypto/src/security/SecureRandom.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src') 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( -- cgit 1.4.1