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...

John-Mark Gurney jmg at funkthat.com
Sat Jul 25 17:30:58 UTC 2015


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


-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the svn-src-all mailing list