/[svn]/ircd-hybrid/libio/misc/misc.c
ViewVC logotype

Diff of /ircd-hybrid/libio/misc/misc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 69 by adx, Tue Oct 4 16:09:51 2005 UTC revision 86 by adx, Wed Oct 5 20:36:04 2005 UTC
# Line 22  Line 22 
22   *  $Id$   *  $Id$
23   */   */
24    
25    #define IN_MISC_C
26  #include "stdinc.h"  #include "stdinc.h"
27    
28  struct timeval SystemTime;  struct timeval SystemTime;
# Line 187  set_time(void) Line 188  set_time(void)
188    SystemTime.tv_sec  = newtime.tv_sec;    SystemTime.tv_sec  = newtime.tv_sec;
189    SystemTime.tv_usec = newtime.tv_usec;    SystemTime.tv_usec = newtime.tv_usec;
190  }  }
191    
192    void
193    libio_init(void)
194    {
195      /* It ain't random, but it ought to be a little harder to guess */
196      srand(SystemTime.tv_sec ^ (SystemTime.tv_usec | (getpid() << 20)));
197    
198      set_time();
199      eventInit();
200      fdlist_init();
201      init_comm();
202    #ifndef NOBALLOC
203      initBlockHeap();
204    #endif
205      init_dlink_nodes();
206      dbuf_init();
207    #ifndef _WIN32
208      init_resolver();
209    #endif
210    }

Legend:
Removed from v.69  
changed lines
  Added in v.86

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28