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" |
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 |
|
|
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 */ |
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; |