# | Line 685 | Line 685 | public class JSR166TestCase extends Test | |
---|---|---|
685 | static TimeUnit randomTimeUnit() { return RANDOM_TIMEUNIT; } | |
686 | ||
687 | /** | |
688 | + | * Returns a random boolean; a "coin flip". |
689 | + | */ |
690 | + | static boolean randomBoolean() { |
691 | + | return ThreadLocalRandom.current().nextBoolean(); |
692 | + | } |
693 | + | |
694 | + | /** |
695 | * Returns the shortest timed delay. This can be scaled up for | |
696 | * slow machines using the jsr166.delay.factor system property, | |
697 | * or via jtreg's -timeoutFactor: flag. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |