aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Villager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/Villager.cpp')
-rw-r--r--Minecraft.World/Villager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/Villager.cpp b/Minecraft.World/Villager.cpp
index f2901291..19303b0d 100644
--- a/Minecraft.World/Villager.cpp
+++ b/Minecraft.World/Villager.cpp
@@ -513,7 +513,7 @@ void Villager::addOffers(int addCount)
}
// shuffle the list to make it more interesting
- std::random_shuffle(newOffers->begin(), newOffers->end());
+ std::shuffle(newOffers->begin(), newOffers->end(), std::mt19937{std::random_device{}()});
if (offers == NULL)
{