Skip to content

Commit 464fcbb

Browse files
committed
随机生成32位的uuid
1 parent aab32cd commit 464fcbb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

uuid/UuidUtil.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import java.util.UUID;
2+
3+
public class UuidUtil {
4+
5+
public static String get32UUID() {
6+
String uuid = UUID.randomUUID().toString().trim().replaceAll("-", "");
7+
return uuid;
8+
}
9+
}

0 commit comments

Comments
 (0)