UUID

1.threadLocalRandom 方式

public static String get32UUID() {
    ThreadLocalRandom random = ThreadLocalRandom.current();
    return new UUID(random.nextLong(), random.nextLong()).toString().replace(StringPool.DASH, StringPool.EMPTY);
}

评论

暂无评论