-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 17
-
Component/s: core-libs
-
b24
-
Verified
Methods RandomGeneratorFactory.create(long) and create(byte[]) silently fallback to the no-arg create() method if the underlying algorithm does not support an explicit long or byte[] seed.
Since the caller is not notified whether the fallback happens, it is at the mercy of the underlying algorithm implementation.
The methods above should throw an `UnsupportedOperationException` rather than silently fallback.
Since the caller is not notified whether the fallback happens, it is at the mercy of the underlying algorithm implementation.
The methods above should throw an `UnsupportedOperationException` rather than silently fallback.
- csr for
-
JDK-8332477 j.u.r.RandomGeneratorFactor.create(long|byte[]) should throw rather than silently fallback to no-arg create()
-
- Closed
-