--- jsr166/src/test/loops/LoopHelpers.java 2010/09/27 19:15:15 1.10 +++ jsr166/src/test/loops/LoopHelpers.java 2015/01/15 18:34:19 1.14 @@ -1,15 +1,15 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain - */ -/** - * Misc utilities in JSR166 performance tests + * http://creativecommons.org/publicdomain/zero/1.0/ */ import java.util.concurrent.*; import java.util.concurrent.atomic.*; +/** + * Misc utilities in JSR166 performance tests + */ class LoopHelpers { static final SimpleRandom staticRNG = new SimpleRandom(); @@ -63,7 +63,6 @@ class LoopHelpers { return x * 134775813 + 1; } - /** * Yet another random number generator */ @@ -106,7 +105,7 @@ class LoopHelpers { public static final class XorShift32Random { static final AtomicInteger seq = new AtomicInteger(8862213); int x = -1831433054; - public XorShift32Random(int seed) { x = seed; } + public XorShift32Random(int seed) { x = seed; } public XorShift32Random() { this((int) System.nanoTime() + seq.getAndAdd(129)); } @@ -118,7 +117,6 @@ class LoopHelpers { } } - /** Multiplication-free RNG from Marsaglia "Xorshift RNGs" paper */ public static final class MarsagliaRandom { static final AtomicInteger seq = new AtomicInteger(3122688);