From 73fd71e229b01f2d794225aa4a51c2eea2be1a2a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 10 Feb 2023 20:15:43 +0700 Subject: Increase seed size for DigestRandomGenerator uses --- crypto/src/security/SecureRandom.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/security') 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; } -- cgit 1.4.1