Random seedUniquifier uses incorrect LCG

XMLWordPrintable

    • b12

      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.


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

              Created:
              Updated:
              Resolved: