diff options
Diffstat (limited to 'bcprov/src/main/java/org/bouncycastle/crypto/params/ParametersWithRandom.java')
-rw-r--r-- | bcprov/src/main/java/org/bouncycastle/crypto/params/ParametersWithRandom.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bcprov/src/main/java/org/bouncycastle/crypto/params/ParametersWithRandom.java b/bcprov/src/main/java/org/bouncycastle/crypto/params/ParametersWithRandom.java index 9c6ed020..9492f5a3 100644 --- a/bcprov/src/main/java/org/bouncycastle/crypto/params/ParametersWithRandom.java +++ b/bcprov/src/main/java/org/bouncycastle/crypto/params/ParametersWithRandom.java @@ -15,14 +15,14 @@ public class ParametersWithRandom CipherParameters parameters, SecureRandom random) { - this.random = random; + this.random = CryptoServicesRegistrar.getSecureRandom(random); this.parameters = parameters; } public ParametersWithRandom( CipherParameters parameters) { - this(parameters, CryptoServicesRegistrar.getSecureRandom()); + this(parameters, null); } public SecureRandom getRandom() |