aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Examples
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2014-07-22 21:43:19 +0200
committerjackpoz <giacomopoz@gmail.com>2014-07-22 21:43:19 +0200
commit3388587b7a2ded9333ab48ce4d02372d750a60fe (patch)
tree04adaaa84bd21e4693ebb5492125468504f9faae /src/server/scripts/Examples
parent0b236d480a9ff5e75da966e50c144d3bcce9b1fa (diff)
Core/Misc: Replace rand() calls with SFMT
Diffstat (limited to 'src/server/scripts/Examples')
-rw-r--r--src/server/scripts/Examples/example_creature.cpp2
1 files changed, 1 insertions, 1 deletions
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);