diff options
author | shennetsind <ind@henn.et> | 2015-01-18 11:57:42 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2015-01-18 11:57:42 -0200 |
commit | ca3f103a32221eda0929927563e4f9961472afdf (patch) | |
tree | 515c6310199ae4f5ac60a35b57332cdcd52dcf61 /src/char | |
parent | df961e808a5256031ad3697650ab5f4ba5ddbe16 (diff) | |
download | hercules-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')
-rw-r--r-- | src/char/pincode.c | 2 |
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); |