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

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.


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

              Created:
              Updated:
              Resolved: