summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorEdward Ned Harvey <edward.harvey@conceptblossom.com>2014-08-05 11:07:33 -0400
committerEdward Ned Harvey <edward.harvey@conceptblossom.com>2014-08-05 11:07:33 -0400
commit66cfe2970d6cc02f10fce030fbc0b6f8cb8ece5a (patch)
tree3f794de98c4453147969c70605bb8a88c412ecdb /crypto/src
parentuse CryptoApiRandomGenerator in addition to other entropy sources (diff)
downloadBouncyCastle.NET-ed25519-66cfe2970d6cc02f10fce030fbc0b6f8cb8ece5a.tar.xz
SecureRandom ctor: given this is a sha1Generator, seed with 20 bytes instead of 8
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/security/SecureRandom.cs2
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(