-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 17, 26
-
Component/s: core-libs
-
None
Prior to JDK 17, ThreadLocalRandom overrode the rarely used nextGaussian. The override was removed in JDK 17 via JEP 356. The intention seems to have it use the Ziggurat algorithm in RandomGenerator but it doesn't so that. Needs to re-examined as currently invoking nextGaussian will use the synchronized implementation in j.u.Random.