From 62c4f876b8ed9eef10a666d78f011ba1fa49bef8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 9 Jul 2012 09:07:30 +0000 Subject: Do not re-initialize ci_randseed on the primary cpu ok kettenis --- sys/arch/i386/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/i386/cpu.c b/sys/arch/i386/i386/cpu.c index c2d628e9a40..a0361342f41 100644 --- a/sys/arch/i386/i386/cpu.c +++ b/sys/arch/i386/i386/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.42 2010/11/27 13:03:04 kettenis Exp $ */ +/* $OpenBSD: cpu.c,v 1.43 2012/07/09 09:07:28 deraadt Exp $ */ /* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */ /*- @@ -395,13 +395,13 @@ cpu_boot_secondary_processors() ci = cpu_info[i]; if (ci == NULL) continue; - ci->ci_randseed = random(); if (ci->ci_idle_pcb == NULL) continue; if ((ci->ci_flags & CPUF_PRESENT) == 0) continue; if (ci->ci_flags & (CPUF_BSP|CPUF_SP|CPUF_PRIMARY)) continue; + ci->ci_randseed = random(); cpu_boot_secondary(ci); } } -- cgit v1.2.3