summaryrefslogtreecommitdiff
path: root/src/char/pincode.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-01-18 11:57:42 -0200
committershennetsind <ind@henn.et>2015-01-18 11:57:42 -0200
commitca3f103a32221eda0929927563e4f9961472afdf (patch)
tree515c6310199ae4f5ac60a35b57332cdcd52dcf61 /src/char/pincode.c
parentdf961e808a5256031ad3697650ab5f4ba5ddbe16 (diff)
downloadhercules-ca3f103a32221eda0929927563e4f9961472afdf.tar.gz
hercules-ca3f103a32221eda0929927563e4f9961472afdf.tar.bz2
hercules-ca3f103a32221eda0929927563e4f9961472afdf.tar.xz
hercules-ca3f103a32221eda0929927563e4f9961472afdf.zip
Replacing rand leftovers with the mt19937ar
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char/pincode.c')
-rw-r--r--src/char/pincode.c2
1 files changed, 1 insertions, 1 deletions
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);