A DESCRIPTION OF THE PROBLEM :
This is in reference to bug JDK-8211049 which has been marked as closed, yet its just started happening in the latest release 8v251. It was not an issue in 8v242.
REGRESSION : Last worked in version 8
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
keyGen.initialize(nnn, mysecurerand);
CUSTOMER SUBMITTED WORKAROUND :
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
keyGen.initialize(new RSAKeyGenParameterSpec(nnn, BigInteger.valueOf(65537)), mysecurerand);
FREQUENCY : always