Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8201634

Random seedUniquifier uses incorrect LCG

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      A DESCRIPTION OF THE PROBLEM :
      The method java.util.Random.seedUniquifier() uses a Linear Congruential Generator constant that is commented to be taken from L'Ecuyer, "Tables of Linear Congruential Generators of Different Sizes and Good Lattice Structure", 1999.

      The constant used in the code is 181783497276652981L. But according to the referenced document, Table 5 for m=2^64, the value should be 1181783497276652981L.


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              martin Martin Buchholz
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: