mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
fix(Core): Rand shuffle seed (RandomBattlegroundSystem,ICC-Marrowgar & Deathwhisper) (#2431)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user