fix(Core): Rand shuffle seed (RandomBattlegroundSystem,ICC-Marrowgar & Deathwhisper) (#2431)

This commit is contained in:
GMKyle
2019-12-06 02:52:48 -05:00
committed by Stoabrogga
parent 0a1bb9f2f7
commit 412905843a
3 changed files with 8 additions and 3 deletions

View File

@@ -1000,7 +1000,8 @@ void RandomBattlegroundSystem::Update(uint32 diff)
small.push_back(BATTLEGROUND_AB);
small.push_back(BATTLEGROUND_SA);
auto rng = std::default_random_engine{};
std::random_device rd;
auto rng = std::default_random_engine{rd()};
std::shuffle(big.begin(), big.end(), rng);
std::shuffle(small.begin(), small.end(), rng);