Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 1997 21:37:05 +0100
From:      Poul-Henning Kamp <phk@critter.dk.tfs.com>
To:        =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.ru>
Cc:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>, markm@freebsd.org, security@freebsd.org
Subject:   Re: ATTENTION: Initial state of random pool 
Message-ID:  <550.859495025@critter>
In-Reply-To: Your message of "Thu, 27 Mar 1997 22:17:56 %2B0300." <Pine.BSF.3.96.970327220407.872A-100000@nagual.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
>I see blkdev randomness commented out in the code, maybe we can
>re-activate it?
>If my fears are true, we need to fix it ASAP.
>Any ideas?

A semi-not-too-bad priming method could be:

	for dev in all diskmedia
		ts = time
		bno = ts.tv_usec & dssize(dev)
		read sector bno
		add sectore to random pool

It will probably not be too great on machines with newly formatted
disks, but otherwise it should do well...

--
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@tfs.com           TRW Financial Systems, Inc.
Power and ignorance is a disgusting cocktail.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?550.859495025>