summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-09-16 07:49:36 -0400
committerMadCamel <madcamel@gmail.com>2009-09-16 07:49:36 -0400
commit03149635727f16b45e99fd5f2f3647d6c4cb749f (patch)
tree4b9f06028bd79a152e485629e175b76447d33b98 /src/map/itemdb.c
parentd7b6afc444c1fac508dd5cc4bdf7e4dfa57e50c2 (diff)
downloadtmwa-03149635727f16b45e99fd5f2f3647d6c4cb749f.tar.gz
tmwa-03149635727f16b45e99fd5f2f3647d6c4cb749f.tar.bz2
tmwa-03149635727f16b45e99fd5f2f3647d6c4cb749f.tar.xz
tmwa-03149635727f16b45e99fd5f2f3647d6c4cb749f.zip
Found and replaced more calls to rand()
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index d9cb429..3b49b50 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -111,8 +111,8 @@ int itemdb_searchrandomid(int flags)
if(count > 0) {
for(i=0;i<1000;i++) {
- index = rand()%count;
- if( rand()%1000000 < list[index].per) {
+ index = MRAND(count);
+ if( MRAND(1000000) < list[index].per) {
nameid = list[index].nameid;
break;
}