[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Theo de Raadt <deraadt_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Wed, 15 Oct 2008 17:23:52 -0600 (MDT)
CVSROOT: /cvs
Module name: src
Changes by: deraadt_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2008/10/15 17:23:51
Modified files:
sys/arch/alpha/include: cpu.h
sys/arch/amd64/amd64: cpu.c
sys/arch/amd64/include: cpu.h
sys/arch/arm/include: cpu.h
sys/arch/hppa/include: cpu.h
sys/arch/i386/i386: cpu.c
sys/arch/i386/include: cpu.h
sys/arch/m68k/include: cpu.h
sys/arch/m88k/include: cpu.h
sys/arch/macppc/macppc: cpu.c
sys/arch/mips64/include: cpu.h
sys/arch/powerpc/include: cpu.h
sys/arch/sh/include: cpu.h
sys/arch/sparc/sparc: cpuvar.h
sys/arch/sparc64/include: cpu.h
sys/arch/sparc64/sparc64: cpu.c
sys/arch/vax/include: cpu.h
sys/conf : files
sys/kern : init_main.c
sys/lib/libkern: libkern.h random.c
Removed files:
sys/lib/libkern: srandom.c
Log message:
make random(9) return per-cpu values (by saving the seed in the cpuinfo),
which are uniform for the profclock on each cpu in a SMP system (but using
a different seed for each cpu). on all cpus, avoid seeding with a value out
of the [0, 2^31-1] range (since that is not stable)
ok kettenis drahn
Visit your host, monkey.org