diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-10 20:15:43 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-10 20:15:43 +0700 |
commit | 73fd71e229b01f2d794225aa4a51c2eea2be1a2a (patch) | |
tree | 4bc089b857cb9a295d14b363eb959e3548a4e2c8 /crypto/src/security | |
parent | Refactor Haraka (diff) | |
download | BouncyCastle.NET-ed25519-73fd71e229b01f2d794225aa4a51c2eea2be1a2a.tar.xz |
Increase seed size for DigestRandomGenerator uses
Diffstat (limited to 'crypto/src/security')
-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 a9c062b4e..03552c38f 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.GetDigestSize()); + AutoSeed(prng, digest.GetByteLength()); } return prng; } |