jdk/src/share/classes/java/util/concurrent/ThreadLocalRandom.java
changeset 20540 1376a380b9ba
parent 20188 564bad4af0a8
equal deleted inserted replaced
20539:cbff16f695c6 20540:1376a380b9ba
   192      * The increment of seeder per new instance
   192      * The increment of seeder per new instance
   193      */
   193      */
   194     private static final long SEEDER_INCREMENT = 0xbb67ae8584caa73bL;
   194     private static final long SEEDER_INCREMENT = 0xbb67ae8584caa73bL;
   195 
   195 
   196     // Constants from SplittableRandom
   196     // Constants from SplittableRandom
   197     private static final double DOUBLE_UNIT = 1.0 / (1L << 53);
   197     private static final double DOUBLE_UNIT = 0x1.0p-53;  // 1.0  / (1L << 53)
   198     private static final float  FLOAT_UNIT  = 1.0f / (1 << 24);
   198     private static final float  FLOAT_UNIT  = 0x1.0p-24f; // 1.0f / (1 << 24)
   199 
   199 
   200     /** Rarely-used holder for the second of a pair of Gaussians */
   200     /** Rarely-used holder for the second of a pair of Gaussians */
   201     private static final ThreadLocal<Double> nextLocalGaussian =
   201     private static final ThreadLocal<Double> nextLocalGaussian =
   202         new ThreadLocal<Double>();
   202         new ThreadLocal<Double>();
   203 
   203