summary refs log tree commit diff
path: root/crypto/src/security
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-02-13 00:21:54 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-02-13 00:21:54 +0700
commit0cc90bd796fe6b7330f95dbd77903cea89b95dc2 (patch)
tree50f469647c2831121d58c0453a0f373c5312d07a /crypto/src/security
parentRefactor Wnaf (diff)
downloadBouncyCastle.NET-ed25519-0cc90bd796fe6b7330f95dbd77903cea89b95dc2.tar.xz
Use 2 * output length for seed size
Diffstat (limited to 'crypto/src/security')
-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 03552c38f..7eeba6f24 100644
--- a/crypto/src/security/SecureRandom.cs
+++ b/crypto/src/security/SecureRandom.cs
@@ -28,7 +28,7 @@ namespace Org.BouncyCastle.Security
             DigestRandomGenerator prng = new DigestRandomGenerator(digest);
             if (autoSeed)
             {
-                AutoSeed(prng, digest.GetByteLength());
+                AutoSeed(prng, 2 * digest.GetDigestSize());
             }
             return prng;
         }