From 71693d0f15245dd87b243b0feaa2737f9525b8cb Mon Sep 17 00:00:00 2001 From: xazax-hun Date: Wed, 25 Apr 2012 18:31:34 +0000 Subject: * Replaced rand() calls with rnd(). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15975 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d5a8e75e0..6ad69e5e3 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -6251,7 +6251,7 @@ ACMD_FUNC(pettalk) }; int i; ARR_FIND( 0, ARRAYLENGTH(emo), i, stricmp(message, emo[i]) == 0 ); - if( i == E_DICE1 ) i = rand()%6 + E_DICE1; // randomize /dice + if( i == E_DICE1 ) i = rnd()%6 + E_DICE1; // randomize /dice if( i < ARRAYLENGTH(emo) ) { if (sd->emotionlasttime + 1 >= time(NULL)) { // not more than 1 per second -- cgit v1.2.3-60-g2f50