mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mru@users.sourceforge.net (Måns Rullgård)
To: linux-kernel@vger.kernel.org
Subject: Re: /dev/random broken?
Date: Sun, 29 Jun 2003 01:29:11 +0200	[thread overview]
Message-ID: <yw1xk7b5u6go.fsf@zaphod.guide> (raw)
In-Reply-To: <3EFE2231.2050707@libero.it>

"Luca T." <luca-t@libero.it> writes:

> i am not sure if this is a kernel/module problem but so it seems to me.
> My computer is an AMD 2000+ with an ABIT motherboard, my kernel
> version is 2.4.21-0.13mdk (but i tried it with 2.4.21-0.18mdk too and
> it doesn't work either).
>
> If i give this command:
>   dd if=/dev/zero of=./xxx bs=1024 count=100
> it will work perfectly. But if i try to do the same reading from
> /dev/random with this command:
>   dd if=/dev/random of=./xxx bs=1024 count=100
> it will just sit there and stare at me until i move the mouse... and
> then the program will exit without any error message (i checked in
> /var/log/messages too and there is no message there either about this).
>
> Is this a bug? If yes... do you have any idea that would help me fix it?

It's not a bug.  The system needs to collect some randomness before
you can get any data.  The mouse is considered random, as are various
other devices.  If you need lots of random data, and are satisfied
with pseudo-random numbers, you can use /dev/urandom instead.

-- 
Måns Rullgård
mru@users.sf.net


  parent reply	other threads:[~2003-06-28 23:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-28 23:18 Luca T.
2003-06-28 23:26 ` Rudo Thomas
2003-06-28 23:29 ` Måns Rullgård [this message]
2003-06-28 23:30 ` Tom Vier
2003-06-28 23:24 Luca T.
2003-07-01  4:30 ` H. Peter Anvin
     [not found] <E19WOvK-0001I7-00@andromeda>
2003-06-29  2:10 ` Justin Pryzby
2003-06-29  2:31   ` Robert Love
2003-06-29  2:36   ` Valdis.Kletnieks

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=yw1xk7b5u6go.fsf@zaphod.guide \
    --to=mru@users.sourceforge.net \
    --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®