From 40fec8a6498587e7d664ab6a8a0cee8c40608d29 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Wed, 29 Mar 2023 21:23:43 +0200 Subject: [PATCH] actual random generation --- src/chunkgenerator.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/chunkgenerator.cpp b/src/chunkgenerator.cpp index d1d4bb2..f172651 100644 --- a/src/chunkgenerator.cpp +++ b/src/chunkgenerator.cpp @@ -27,9 +27,10 @@ void generateChunk(Chunk::Chunk *chunk) Block block; -std::mt19937 mt; -OpenSimplexNoise::Noise noiseGen1(1234); -OpenSimplexNoise::Noise noiseGen2(12345); +std::random_device dev; +std::mt19937 mt(dev()); +OpenSimplexNoise::Noise noiseGen1(mt()); +OpenSimplexNoise::Noise noiseGen2(mt()); std::array grassNoiseLUT; std::array dirtNoiseLUT;