IdGenerator { public String randomUUID() { return IdUtil.randomUUID(); }  synchronized String batchId(int tenantId, int module); @Deprecated synchronized String getBatchId(int tenantId, int module); String simpleUUID(); String randomUUID(); synchronized long snowflakeId(); synchronized long snowflakeId(long workerId, long dataCenterId); String objectId();  }
@Test public void testRandomUUID() { for (int i = 0; i < 100; i++) { String randomUUID = idGenerator.randomUUID(); System.out.println("randomUUID: " + randomUUID); } }