--- jsr166/src/test/tck/JSR166TestCase.java 2019/07/28 18:09:25 1.255 +++ jsr166/src/test/tck/JSR166TestCase.java 2019/08/11 22:29:26 1.256 @@ -685,6 +685,13 @@ public class JSR166TestCase extends Test static TimeUnit randomTimeUnit() { return RANDOM_TIMEUNIT; } /** + * Returns a random boolean; a "coin flip". + */ + static boolean randomBoolean() { + return ThreadLocalRandom.current().nextBoolean(); + } + + /** * Returns the shortest timed delay. This can be scaled up for * slow machines using the jsr166.delay.factor system property, * or via jtreg's -timeoutFactor: flag.