[cvs] / jsr166 / src / main / java / util / SplittableRandom.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/SplittableRandom.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37, Thu Nov 17 22:09:52 2016 UTC revision 1.38, Tue Dec 20 22:08:05 2016 UTC
# Line 375  Line 375 
375       * may, and typically does, vary across program invocations.       * may, and typically does, vary across program invocations.
376       */       */
377      public SplittableRandom() { // emulate defaultGen.split()      public SplittableRandom() { // emulate defaultGen.split()
378          long s = defaultGen.getAndAdd(2 * GOLDEN_GAMMA);          long s = defaultGen.getAndAdd(GOLDEN_GAMMA << 1);
379          this.seed = mix64(s);          this.seed = mix64(s);
380          this.gamma = mixGamma(s + GOLDEN_GAMMA);          this.gamma = mixGamma(s + GOLDEN_GAMMA);
381      }      }

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8