1.threadLocalRandom 方式

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

叮咚_打地鼠
0 声望0 粉丝

docker docker docker ing


引用和评论

0 条评论