jdk/test/java/util/Random/DistinctSeeds.java
changeset 7803 56bc97d69d93
parent 5506 202f599c92aa
child 9242 ef138d47df58
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
    57                 for (int i = 0; i < randoms.length; i++)
    57                 for (int i = 0; i < randoms.length; i++)
    58                     randoms[i] = new Random().nextLong();
    58                     randoms[i] = new Random().nextLong();
    59             }
    59             }
    60         }
    60         }
    61         final int threadCount = 2;
    61         final int threadCount = 2;
    62         List<RandomCollector> collectors = new ArrayList<RandomCollector>();
    62         List<RandomCollector> collectors = new ArrayList<>();
    63         List<Thread> threads = new ArrayList<Thread>();
    63         List<Thread> threads = new ArrayList<Thread>();
    64         for (int i = 0; i < threadCount; i++) {
    64         for (int i = 0; i < threadCount; i++) {
    65             RandomCollector r = new RandomCollector();
    65             RandomCollector r = new RandomCollector();
    66             collectors.add(r);
    66             collectors.add(r);
    67             threads.add(new Thread(r));
    67             threads.add(new Thread(r));