mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Satchell <list@fluent2.pyramid.net>
To: "Folkert van Heusden" <folkert@vanheusden.com>,
	"'John Bradford'" <john@grabjohn.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: RE: Want a random entropy source?
Date: Sat, 28 Dec 2002 15:20:21 -0800	[thread overview]
Message-ID: <5.2.0.9.0.20021228151707.01d44ec0@fluent2.pyramid.net> (raw)
In-Reply-To: <003c01c2aeaf$ac673530$3640a8c0@boemboem>

At 09:28 PM 12/28/02 +0100, Folkert van Heusden wrote:
>JB> How can you guarantee that you are sampling noise, though, what if a
>JB> sound card was picking up 50 Hz mains hum, for example,  that would
>JB> de-randomise the data quite a bit.
>
>Well, the 50hz from the mains isn't a perfect 50hz; it has random (yes)
>fluctuations.

As a start, I would slot out 50 Hz, 60 Hz (for people in the US and 
US-engineered power systems in other countries), 4 kHz and 
harmonics.  Actually, if you are sampling at roughly random intervals you 
would get about four to six bits per sample of somewhat random values, and 
that would give you entropy as good as you get from mouse movement.

If someone were playing a CD at the time you were sampling the sound card, 
you would get considerably more bits of entropy, but using the six bottom 
bits would still be useful.

Hey, people, it's just a thought.  Turning lemons into lemonade, if you will.

Satch


  parent reply	other threads:[~2002-12-28 23:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-27 16:16 two 2.5 modules bugs Mikael Pettersson
2002-12-27 23:24 ` Petr Vandrovec
2002-12-28 10:37 ` Rusty Russell
2002-12-28 15:40   ` Want a random entropy source? Stephen Satchell
2002-12-28 16:00     ` John Bradford
2002-12-28 16:38       ` Dr. David Alan Gilbert
2002-12-28 16:47       ` Russell King
2002-12-28 17:15         ` John Bradford
2002-12-28 20:28       ` Folkert van Heusden
2002-12-28 20:39         ` John Bradford
2002-12-28 20:53           ` Folkert van Heusden
2002-12-28 23:20         ` Stephen Satchell [this message]
2002-12-28 23:41           ` John Bradford
2002-12-28 20:27     ` Folkert van Heusden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.2.0.9.0.20021228151707.01d44ec0@fluent2.pyramid.net \
    --to=list@fluent2.pyramid.net \
    --cc=folkert@vanheusden.com \
    --cc=john@grabjohn.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®