| 48 |
|
#include "whowas.h" |
| 49 |
|
#include "memory.h" |
| 50 |
|
#include "packet.h" |
| 51 |
+ |
#include "rng_mt.h" |
| 52 |
|
#include "userhost.h" |
| 53 |
|
#include "hook.h" |
| 54 |
|
#include "s_misc.h" |
| 301 |
|
if (!IsPingSent(source_p) && |
| 302 |
|
source_p->localClient->random_ping == 0) |
| 303 |
|
{ |
| 304 |
< |
source_p->localClient->random_ping = (unsigned long)rand(); |
| 305 |
< |
sendto_one(source_p, "PING :%lu", |
| 304 |
> |
source_p->localClient->random_ping = genrand_int32(); |
| 305 |
> |
sendto_one(source_p, "PING :%u", |
| 306 |
|
source_p->localClient->random_ping); |
| 307 |
|
SetPingSent(source_p); |
| 308 |
|
return; |