From 73bc3d8ea49a4793b14976e86010a36f19c1d18b Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 9 Nov 2019 13:32:58 +0100 Subject: Core/Random: Refactor random number generation to use std::uniform_*_distribution to restrict result range instead of doing that ourselves * Seed SFMTRand with more values for its state --- src/common/Utilities/Containers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/Utilities/Containers.h') diff --git a/src/common/Utilities/Containers.h b/src/common/Utilities/Containers.h index 845ac173fec..edd7be3ea7c 100644 --- a/src/common/Utilities/Containers.h +++ b/src/common/Utilities/Containers.h @@ -176,7 +176,7 @@ namespace Trinity template inline void RandomShuffle(C& container) { - std::shuffle(std::begin(container), std::end(container), SFMTEngine::Instance()); + std::shuffle(std::begin(container), std::end(container), RandomEngine::Instance()); } /** -- cgit v1.2.3