|
@@ -36,13 +36,13 @@ public class RandomUtil {
|
|
|
public void getRandom(Long workId, boolean againRandom) {
|
|
|
List list = randomMap.get(workId);
|
|
|
if (Objects.isNull(list)) {
|
|
|
- randomMap.clear();
|
|
|
+// randomMap.clear();
|
|
|
list = new ArrayList(randomSize);
|
|
|
}
|
|
|
if (list.size() == 0 || againRandom) {
|
|
|
long start = System.currentTimeMillis();
|
|
|
if (againRandom) {
|
|
|
- randomMap.clear();
|
|
|
+// randomMap.clear();
|
|
|
list = new ArrayList(randomSize);
|
|
|
randomNum++;
|
|
|
}
|