@Test public void testCreateCuid() { String cuid = CUID.createCUID(29823298, LessNumbers.random.nextInt()); assertEquals("747f", cuid.substring(0, cuid.length() - 8)); cuid = CUID.createCUID(1226509443755L, LessNumbers.random.nextInt()); assertEquals("491b0c83", cuid.substring(0, cuid.length() - 8)); cuid = CUID.createCUID(1226509443755L, -1); assertEquals("491b0c83ffffffff", cuid); cuid = CUID.createCUID(1226509443755L, Integer.MIN_VALUE); assertEquals("491b0c8380000000", cuid); cuid = CUID.createCUID(1226509443755L, Integer.MAX_VALUE); assertEquals("491b0c837fffffff", cuid); cuid = CUID.createCUID(Long.MIN_VALUE, Integer.MIN_VALUE); assertEquals("5a1cac0980000000", cuid); cuid = CUID.createCUID(Long.MAX_VALUE, Integer.MAX_VALUE); assertEquals("a5e353f77fffffff", cuid); cuid = CUID.createCUID(0, -1); assertEquals("ffffffff", cuid); cuid = CUID.createCUID(0, 0); assertEquals("0", cuid); }
public static String createCUID() { return createCUID(System.currentTimeMillis(), LessNumbers.random.nextInt()); }
CUID { public static String createCUID() { return createCUID(System.currentTimeMillis(), LessNumbers.random.nextInt()); } }
CUID { public static String createCUID() { return createCUID(System.currentTimeMillis(), LessNumbers.random.nextInt()); }  }
CUID { public static String createCUID() { return createCUID(System.currentTimeMillis(), LessNumbers.random.nextInt()); }  static String createAPIKey(); @Deprecated static String createGUID(int base); @Deprecated static String createGUID(); static String createCUID(); static String createCUID(long time, int rand); static long cuidToTime(String cuid); static long cuidToTime(long cuid); static String encodeCUID(long cuid); static long decodeCUID(String cuid); }
CUID { public static String createCUID() { return createCUID(System.currentTimeMillis(), LessNumbers.random.nextInt()); }  static String createAPIKey(); @Deprecated static String createGUID(int base); @Deprecated static String createGUID(); static String createCUID(); static String createCUID(long time, int rand); static long cuidToTime(String cuid); static long cuidToTime(long cuid); static String encodeCUID(long cuid); static long decodeCUID(String cuid);  }