diff --git a/src/ircd.c b/src/ircd.c index 5eac695f..170ea9dd 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -67,8 +67,6 @@ #include "sslproc.h" #include "chmode.h" -/* XXX fix egd!!! */ - /* /quote set variables */ struct SetOptions GlobalSetOptions; @@ -633,6 +631,12 @@ main(int argc, char *argv[]) rb_lib_init(ircd_log_cb, ircd_restart_cb, ircd_die_cb, !server_state_foreground, maxconnections, DNODE_HEAP_SIZE, FD_HEAP_SIZE); rb_linebuf_init(LINEBUF_HEAP_SIZE); + if(ConfigFileEntry.use_egd && (ConfigFileEntry.egdpool_path != NULL)) + { + rb_init_prng(ConfigFileEntry.egdpool_path, RB_PRNG_EGD); + } else + rb_init_prng(NULL, RB_PRNG_DEFAULT); + init_main_logfile(); newconf_init(); init_s_conf();