diff options
Diffstat (limited to 'crypto/src/crmf')
-rw-r--r-- | crypto/src/crmf/PKMacBuilder.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/src/crmf/PKMacBuilder.cs b/crypto/src/crmf/PKMacBuilder.cs index bce26b825..ae9baa3d0 100644 --- a/crypto/src/crmf/PKMacBuilder.cs +++ b/crypto/src/crmf/PKMacBuilder.cs @@ -224,10 +224,7 @@ namespace Org.BouncyCastle.Crmf byte[] salt = new byte[saltLength]; - if (random == null) - { - this.random = new SecureRandom(); - } + this.random = CryptoServicesRegistrar.GetSecureRandom(random); random.NextBytes(salt); |