ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/user.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_user.c (file contents):
Revision 981 by michael, Sun Aug 9 19:09:03 2009 UTC vs.
Revision 982 by michael, Thu Aug 13 22:15:08 2009 UTC

# Line 48 | Line 48
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"
# Line 300 | Line 301 | register_local_user(struct Client *clien
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)