aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Containers.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2019-11-09 13:32:58 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-19 00:13:11 +0100
commitb93bf95f2e76eca8be12ba07828387ab8529c050 (patch)
tree3cce522959f5a57ed2c57aca2d0b339ad79bce4e /src/common/Utilities/Containers.h
parent08b40733a58da23ced34915cb67c0ef24e6e9059 (diff)
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 (cherry picked from commit 73bc3d8ea49a4793b14976e86010a36f19c1d18b)
Diffstat (limited to 'src/common/Utilities/Containers.h')
-rw-r--r--src/common/Utilities/Containers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/Containers.h b/src/common/Utilities/Containers.h
index 9c2f7849923..d7103d32e37 100644
--- a/src/common/Utilities/Containers.h
+++ b/src/common/Utilities/Containers.h
@@ -176,7 +176,7 @@ namespace Trinity
template<class C>
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());
}
/**