From 64daf89695c890b3458f29d30619c0488448c6b9 Mon Sep 17 00:00:00 2001 From: sylvessa <225480449+sylvessa@users.noreply.github.com> Date: Wed, 11 Mar 2026 11:08:20 -0500 Subject: [PATCH] add random seed generation --- Minecraft.Server/Windows64/ServerMain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Minecraft.Server/Windows64/ServerMain.cpp b/Minecraft.Server/Windows64/ServerMain.cpp index 92864ffcf..2b7929fd2 100644 --- a/Minecraft.Server/Windows64/ServerMain.cpp +++ b/Minecraft.Server/Windows64/ServerMain.cpp @@ -29,6 +29,7 @@ #include "../../Minecraft.World/compression.h" #include "../../Minecraft.World/OldChunkStorage.h" #include "../../Minecraft.World/net.minecraft.world.level.tile.h" +#include "../../Minecraft.World/Random.h" #include #include @@ -574,6 +575,10 @@ int main(int argc, char **argv) { param->seed = config.seed; } + else + { + param->seed = (new Random())->nextLong(); + } #ifdef _LARGE_WORLDS param->xzSize = (unsigned int)config.worldSizeChunks; param->hellScale = (unsigned char)config.worldHellScale;