-/* $OpenBSD: init_main.c,v 1.192 2013/12/01 16:40:56 krw Exp $ */
+/* $OpenBSD: init_main.c,v 1.193 2013/12/28 03:04:20 deraadt Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
sleep_queue_init();
sched_init_cpu(curcpu());
+ random_start();
+ srandom(arc4random());
+
/* Initialize work queues */
workq_init();
taskq_init();
&initproc))
panic("fork init");
+ randompid = 1;
+
/*
* Create any kernel threads whose creation was deferred because
* initproc had not yet been created.
microtime(&rtv);
srandom((u_int32_t)(rtv.tv_sec ^ rtv.tv_usec) ^ arc4random());
- randompid = 1;
-
#if defined(MULTIPROCESSOR)
/* Boot the secondary processors. */
cpu_boot_secondary_processors();