aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/core/util')
-rw-r--r--src/Java/gtPlusPlus/core/util/math/MathUtils.java5
-rw-r--r--src/Java/gtPlusPlus/core/util/uuid/UUIDGenerator.java4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/Java/gtPlusPlus/core/util/math/MathUtils.java b/src/Java/gtPlusPlus/core/util/math/MathUtils.java
index 21c8fa840b..f3f72f86bb 100644
--- a/src/Java/gtPlusPlus/core/util/math/MathUtils.java
+++ b/src/Java/gtPlusPlus/core/util/math/MathUtils.java
@@ -4,9 +4,8 @@ import java.util.Map;
import java.util.Random;
import gregtech.api.enums.GT_Values;
-import gtPlusPlus.api.objects.CSPRNG;
+import gtPlusPlus.api.objects.CSPRNG_DO_NOT_USE;
import gtPlusPlus.api.objects.Logger;
-import gtPlusPlus.api.objects.XSTR;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.Utils;
@@ -23,7 +22,7 @@ public class MathUtils {
* @see java.util.Random#nextInt(int)
*/
- final static Random rand = CSPRNG.generate(CORE.RANDOM);
+ final static Random rand = CSPRNG_DO_NOT_USE.generate(CORE.RANDOM);
public static int randInt(final int min, final int max) {
// nextInt is normally exclusive of the top value,
diff --git a/src/Java/gtPlusPlus/core/util/uuid/UUIDGenerator.java b/src/Java/gtPlusPlus/core/util/uuid/UUIDGenerator.java
index b6aa6ae6db..0fd2d8c6a5 100644
--- a/src/Java/gtPlusPlus/core/util/uuid/UUIDGenerator.java
+++ b/src/Java/gtPlusPlus/core/util/uuid/UUIDGenerator.java
@@ -5,7 +5,7 @@ import java.net.InetAddress;
import java.util.Random;
import java.util.UUID;
-import gtPlusPlus.api.objects.CSPRNG;
+import gtPlusPlus.api.objects.CSPRNG_DO_NOT_USE;
/**
*
@@ -106,7 +106,7 @@ public class UUIDGenerator {
}
// note that secure random is very slow the first time
// it is used; consider switching to a standard random
- RANDOM = CSPRNG.generate();
+ RANDOM = CSPRNG_DO_NOT_USE.generate();
_seq = (short) RANDOM.nextInt(MAX_14BIT);
byte[] ip = null;