From 3388587b7a2ded9333ab48ce4d02372d750a60fe Mon Sep 17 00:00:00 2001 From: jackpoz Date: Tue, 22 Jul 2014 21:43:19 +0200 Subject: Core/Misc: Replace rand() calls with SFMT --- src/server/scripts/Examples/example_creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Examples') diff --git a/src/server/scripts/Examples/example_creature.cpp b/src/server/scripts/Examples/example_creature.cpp index d573241137f..9fa2940a43f 100644 --- a/src/server/scripts/Examples/example_creature.cpp +++ b/src/server/scripts/Examples/example_creature.cpp @@ -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); -- cgit v1.2.3