+
+ syslog(LOG_INFO, "Seeding the pseudo-random number generator...");
+ urandom = fopen("/dev/urandom", "r");
+ if (urandom != NULL) {
+ if (fread(&seed, sizeof seed, 1, urandom) == -1) {
+ syslog(LOG_ERR, "citserver: failed to read random seed: %m");
+ }
+ fclose(urandom);
+ }
+ else {
+ gettimeofday(&tv, NULL);
+ seed = tv.tv_usec;
+ }
+ srand(seed);
+ srandom(seed);
+}
+
+
+// Various things that need to be initialized at startup
+void master_startup(void) {