From owner-svn-src-all@freebsd.org Tue Jul 28 16:04:42 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E37C9ACEEC; Tue, 28 Jul 2015 16:04:42 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3A44C1D0B; Tue, 28 Jul 2015 16:04:42 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 37F2E1D38; Tue, 28 Jul 2015 16:04:42 +0000 (UTC) Date: Tue, 28 Jul 2015 16:04:42 +0000 From: Alexey Dokuchaev To: John-Mark Gurney Cc: Mark R V Murray , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers Subject: Re: svn commit: r284959 - in head: . share/man/man4 share/man/man9 sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe sys/dev/syscons sys/dev/ubsec sys/dev/virtio/random sy... Message-ID: <20150728160442.GA16709@FreeBSD.org> References: <20150724012519.GE78154@funkthat.com> <20150725143629.GA49086@FreeBSD.org> <20150725173054.GV78154@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150725173054.GV78154@funkthat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2015 16:04:42 -0000 On Sat, Jul 25, 2015 at 10:30:55AM -0700, John-Mark Gurney wrote: > Alexey Dokuchaev wrote this message on Sat, Jul 25, 2015 at 14:36 +0000: > > On Fri, Jul 24, 2015 at 07:59:35AM +0100, Mark R V Murray wrote: > > > [...] > > > > Heck, piping in mic data to /dev/random is a good way to seed the > > > > rng on many machines. > > > > > > Well, sure, but what if you don't have microphone? I want lots > > > of choices, in anticipation of only a subset being usable. > > > > I like the microphone idea. Not just it adds another hard-to-mess-with > > (?) entropy source, it can also be a nice "reference" example for people > > wanting to write their own sources and plug them into the RNG framework. > > Shouldn't be done in kernel, just do it from userland, by adding the > following to cron: > 3 * * * * root sleep $(jot -r 1 120 1); dd if=/dev/dsp bs=512 count=5 2>/dev/null | sha512 > /dev/random Hey, that's nice, thanks! I didn't realize from reading random(4) that it can be fed like this. Perhaps manpage should be updated (the cron trick could be a nice candidate for EXAMPLES section or something)... ./danfe