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/char/pincode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/char') diff --git a/src/char/pincode.c b/src/char/pincode.c index 02c71b3b6..325a705a5 100644 --- a/src/char/pincode.c +++ b/src/char/pincode.c @@ -104,7 +104,7 @@ void pincode_setnew(int fd, struct char_session_data* sd) { void pincode_sendstate(int fd, struct char_session_data* sd, uint16 state) { WFIFOHEAD(fd, 12); WFIFOW(fd, 0) = 0x8b9; - WFIFOL(fd, 2) = sd->pincode_seed = rand() % 0xFFFF; + WFIFOL(fd, 2) = sd->pincode_seed = rnd() % 0xFFFF; WFIFOL(fd, 6) = sd->account_id; WFIFOW(fd,10) = state; WFIFOSET(fd,12); -- cgit v1.2.3-70-g09d2