Core/Misc: Replace rand() calls with SFMT

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

View File

@@ -199,7 +199,7 @@ class example_creature : public CreatureScript
if (m_uiSpell1Timer <= uiDiff)
{
//Cast spell one on our current target.
if (rand()%50 > 10)
if (rand32() % 50 > 10)
DoCastVictim(SPELL_ONE_ALT);
else if (me->IsWithinDist(me->GetVictim(), 25.0f))
DoCastVictim(SPELL_ONE);