ThreadLocalRandom no longer overrides nextGaussian

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • 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.

            Assignee:
            Viktor Klang
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: