mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8211049: Second parameter of "initialize" method is not used
Use the specified random object instead of system default Reviewed-by: weijun
This commit is contained in:
parent
9ba72c0c2c
commit
c8c41d1444
2 changed files with 61 additions and 1 deletions
|
@ -70,7 +70,7 @@ public abstract class RSAKeyPairGenerator extends KeyPairGeneratorSpi {
|
|||
public void initialize(int keySize, SecureRandom random) {
|
||||
try {
|
||||
initialize(new RSAKeyGenParameterSpec(keySize,
|
||||
RSAKeyGenParameterSpec.F4), null);
|
||||
RSAKeyGenParameterSpec.F4), random);
|
||||
} catch (InvalidAlgorithmParameterException iape) {
|
||||
throw new InvalidParameterException(iape.getMessage());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue