From ca3f103a32221eda0929927563e4f9961472afdf Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 18 Jan 2015 11:57:42 -0200 Subject: Replacing rand leftovers with the mt19937ar Signed-off-by: shennetsind --- src/map/mob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 0eb1a9833..3d883a2f1 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2508,7 +2508,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { for(i = 0; i < MAX_MVP_DROP; i++) { while( 1 ) { - int va = rand()%MAX_MVP_DROP; + int va = rnd()%MAX_MVP_DROP; if( !mdrop_id[va] || !md->db->mvpitem[i].nameid ) { mdrop_id[va] = md->db->mvpitem[i].nameid; mdrop_p[va] = md->db->mvpitem[i].p; -- cgit v1.2.3-60-g2f50