fix(com/qi4l/JYso/gadgets/utils/dirty/DirtyDataWrapper.java): 修复type随机数范围

This commit is contained in:
qi4L
2025-12-31 10:01:00 +08:00
parent cd05e8e561
commit 175c20d230
2 changed files with 34 additions and 1 deletions
@@ -51,7 +51,7 @@ public class DirtyDataWrapper {
String randStr1 = new RandomString((int) (Math.random() * 10) % 10 + 1, ThreadLocalRandom.current()).getString();
String randStr2 = new RandomString((int) (Math.random() * 10) % 10 + 1, ThreadLocalRandom.current()).getString();
// 随机选择封装对象
int type = (int) (Math.random() * 10) % 10 + 1;
int type = ThreadLocalRandom.current().nextInt(5);
switch (type) {
case 0:
List<Object> arrayList = new ArrayList<Object>();