Relates :
|
SecureRandom::getSeed(num) always calls SecureRandom::generateSeed(num). In JDK-8051408, generateSeed() was updated to throw an IllegalArgumentException if num is negative (before it, a NegativeArraySizeException was thrown) and it was specified to do so. However, spec for getSeed() was not updated.