Core/Misc: Replace rand() calls with SFMT

This commit is contained in:
jackpoz committed 2014-07-22 21:43:19 +02:00
1 parent 0b236d480a
commit 3388587b7a
117 files changed
+415 -438

No files matched your search

+1 -1
View File
@@ -426,7 +426,7 @@ class spell_q11587_arcane_prisoner_rescue : public SpellScriptLoader
if (Unit* unitTarget = GetHitUnit())
{
uint32 spellId = SPELL_SUMMON_ARCANE_PRISONER_MALE;
if (rand() % 2)
if (rand32() % 2)
spellId = SPELL_SUMMON_ARCANE_PRISONER_FEMALE;
caster->CastSpell(caster, spellId, true);
unitTarget->CastSpell(caster, SPELL_ARCANE_PRISONER_KILL_CREDIT, true);