mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
create random seeds for features using SecureRandom
This commit is contained in:
@@ -43,7 +43,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ if (randomise) {
|
||||
+ final Map<String, Object> randomisedSeeds = new HashMap<>();
|
||||
+ final java.util.Random random = new java.util.Random();
|
||||
+ final java.util.Random random = new java.security.SecureRandom();
|
||||
+ for (final net.minecraft.resources.ResourceLocation resourceLocation : registry.keySet()) {
|
||||
+ if (featureSeeds.containsKey(resourceLocation)) {
|
||||
+ continue;
|
||||
|
Reference in New Issue
Block a user