@@ -0,0 +1,1420 @@
+package asv.uuid;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collections;%0Aimport java.util.Date;%0Aimport java.util.UUID;%0A%0Apublic class GenerateMany %7B%0A    private static final int NUM = 1000000;%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        gen();%0A        System.err.flush();%0A        System.out.flush();%0A    %7D%0A%0A    private static void check() %7B%0A%0A    %7D%0A%0A    private static void gen() throws Exception %7B%0A        // init everything so long%0A        UUIDUtil.uniquer();%0A        UUIDUtil.randomUUID();%0A%0A        // Wait for the next 10s boundary to sync with others%0A        long now = System.currentTimeMillis();%0A        long start = (now / 10000L + 1) * 10000L;%0A        System.err.println(%22Now: %22 + new Date(now) + %22 will start at %22 + new Date(start));%0A        Thread.sleep(start - now);%0A        ArrayList%3CUUID%3E uuids = new ArrayList%3C%3E(NUM);%0A%0A        System.err.println(%22Generating %22 + (System.currentTimeMillis() %25 10000));%0A        System.err.flush();%0A        for (int i = 0; i %3C NUM; i++) %7B%0A            uuids.add(UUIDUtil.uniquer());%0A        %7D%0A%0A        System.err.println(%22Sorting%22);%0A        System.err.flush();%0A        Collections.sort(uuids, UUIDUtil.lexicographicComparator());%0A%0A        System.err.println(%22Writing%22);%0A        System.err.flush();%0A        for (UUID x : uuids) %7B%0A            System.out.println(x);%0A        %7D%0A%0A        System.err.println(%22Done%22);%0A        System.err.flush();%0A    %7D%0A%7D%0A

test utility to generate many UUIDs