From 3d3d1a95bb0822fb8c165c4d4726a5d082a67a83 Mon Sep 17 00:00:00 2001
From: Valery V Yatsko <darkwire.tl@gmail.com>
Date: Sat, 28 Jun 2008 14:36:25 +0400
Subject: [PATCH] Remove srand() from main(), we are using ratbox3 random
 number generator (ev)

---
 src/ircd.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/ircd.c b/src/ircd.c
index 6aa38f161..a748217bb 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -84,10 +84,11 @@ struct timeval SystemTime;
 struct Client me;		/* That's me */
 struct LocalUser meLocalUser;	/* That's also part of me */
 
-rb_dlink_list lclient_list = { NULL, NULL, 0 };
-rb_dlink_list global_client_list = { NULL, NULL, 0 };
+rb_dlink_list global_client_list;
 
+/* unknown/client pointer lists */
 rb_dlink_list unknown_list;        /* unknown clients ON this server only */
+rb_dlink_list lclient_list;	/* local clients only ON this server */
 rb_dlink_list serv_list;           /* local servers to this server ONLY */
 rb_dlink_list global_serv_list;    /* global servers on the network */
 rb_dlink_list local_oper_list;     /* our opers, duplicated in lclient_list */
@@ -551,13 +552,13 @@ main(int argc, char *argv[])
 		return -1;
 	}
 
+	rb_set_time();
+
 	/*
 	 * Setup corefile size immediately after boot -kre
 	 */
 	setup_corefile();
 
-	/* It ain't random, but it ought to be a little harder to guess */
-	srand(SystemTime.tv_sec ^ (SystemTime.tv_usec | (getpid() << 20)));
 	memset(&me, 0, sizeof(me));
 	memset(&meLocalUser, 0, sizeof(meLocalUser));
 	me.localClient = &meLocalUser;