fix(TDI-42192): Use SecureRandom in system routines (#2707)
This commit is contained in:
@@ -8,6 +8,8 @@ package routines;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import routines.system.RandomUtils;
|
||||
|
||||
public class Numeric {
|
||||
|
||||
private static final java.util.Map<String, Integer> seq_Hash = new ConcurrentHashMap<>();
|
||||
@@ -88,7 +90,7 @@ public class Numeric {
|
||||
if (max < min) {
|
||||
throw new RuntimeException("Max value should be bigger than min value");
|
||||
}
|
||||
return ((Long) Math.round(min - 0.5 + (Math.random() * (max - min + 1)))).intValue();
|
||||
return ((Long) Math.round(min - 0.5 + (RandomUtils.random() * (max - min + 1)))).intValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user