From 82418e3a71940a9f7b7e38a76d984b191ebbf7d8 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Tue, 19 Oct 2021 15:25:04 +0100 Subject: [PATCH] create random seeds for features using SecureRandom --- patches/server/Configurable-feature-seeds.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Configurable-feature-seeds.patch b/patches/server/Configurable-feature-seeds.patch index 4fd48166ad..99d3844b43 100644 --- a/patches/server/Configurable-feature-seeds.patch +++ b/patches/server/Configurable-feature-seeds.patch @@ -43,7 +43,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + if (randomise) { + final Map 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;