Ulid { public static String random() { return random(System.currentTimeMillis()); }  static String random(); static String random(long millis); static String random(Random random); static String generate(long time, byte[] entropy); static boolean isValid(CharSequence ulid); static long getTimestamp(CharSequence ulid); static byte[] getEntropy(CharSequence ulid); static final int ULID_LENGTH; static final long MIN_TIME; static final long MAX_TIME; }
@Test public void testLowerCase() { for(int i=0; i< 100; ++i) { final String ulid = Ulid.random(); assertEquals(ulid, ulid.toLowerCase()); } }