From 37cd159e9400e297c5d6c1a4da8aca5fda6a40e4 Mon Sep 17 00:00:00 2001 From: Valery V Yatsko Date: Sat, 16 Aug 2008 22:29:33 +0400 Subject: [PATCH] egd fixed --- src/ircd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ircd.c b/src/ircd.c index 5eac695f3..170ea9dd3 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();