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

Comparing ircd-hybrid-7.2/src/ircd.c (file contents):
Revision 967 by michael, Sun Aug 2 18:05:28 2009 UTC vs.
Revision 982 by michael, Thu Aug 13 22:15:08 2009 UTC

# Line 47 | Line 47
47   #include "parse.h"
48   #include "irc_res.h"
49   #include "restart.h"
50 + #include "rng_mt.h"
51   #include "s_auth.h"
52   #include "s_bsd.h"
53   #include "s_conf.h"
# Line 85 | Line 86 | struct timeval SystemTime;
86   struct Client me;             /* That's me */
87   struct LocalUser meLocalUser; /* That's also part of me */
88  
88 static unsigned long initialVMTop = 0;   /* top of virtual memory at init */
89   const char *logFileName = LPATH;
90   const char *pidFileName = PPATH;
91  
# Line 512 | Line 512 | main(int argc, char *argv[])
512    if (geteuid() == 0)
513    {
514      fprintf(stderr, "Don't run ircd as root!!!\n");
515 <    return(-1);
515 >    return -1;
516    }
517  
518    /* Setup corefile size immediately after boot -kre */
# Line 522 | Line 522 | main(int argc, char *argv[])
522    /* save server boot time right away, so getrusage works correctly */
523    set_time();
524  
525 <    /* It ain't random, but it ought to be a little harder to guess */
526 <  srand(SystemTime.tv_sec ^ (SystemTime.tv_usec | (getpid() << 20)));
525 >  /* It ain't random, but it ought to be a little harder to guess */
526 >  init_genrand(SystemTime.tv_sec ^ (SystemTime.tv_usec | (getpid() << 20)));
527 >
528    memset(&me, 0, sizeof(me));
529    memset(&meLocalUser, 0, sizeof(meLocalUser));
530    me.localClient = &meLocalUser;

Diff Legend

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