This commit is contained in:
thinkgem
2025-03-20 12:07:15 +08:00
parent 080b48559f
commit 1356893d4e

View File

@@ -18,8 +18,8 @@ import java.util.UUID;
*/ */
public class IdGen { public class IdGen {
private static SecureRandom random = new SecureRandom(); private static final SecureRandom random = new SecureRandom();
private static IdWorker idWorker = new IdWorker(-1, -1); private static final IdWorker idWorker = new IdWorker(-1, -1);
/** /**
* 生成UUID, 中间无-分割. * 生成UUID, 中间无-分割.