From: Lee Revell <rlrevell@joe-job.com>
To: "Bob O'Neill" <rmoneill@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: reading the same entropy twice
Date: Tue, 22 Feb 2005 17:08:11 -0500 [thread overview]
Message-ID: <1109110092.31071.47.camel@krustophenia.net> (raw)
In-Reply-To: <4b325ef050222135529a2584a@mail.gmail.com>
On Tue, 2005-02-22 at 16:55 -0500, Bob O'Neill wrote:
> Hello.
>
> I have noticed that it is possible on an SMP box for two processes to
> simultaneously read the same entropy out of /dev/urandom. This
> doesn't seem right to me. I was using the entropy value to generate a
> random number to use as a session ID, so occasionally there would be a
> collision on session IDs, causing a login failure as session IDs are
> required to be unique. This issue does not appear to be related to
> entropy depletion.
>
> Could you provide me with some insight into why this is the case, if
> it is intentional? It seems like it could be addressed with a
> spinlock.
Please check the LKML archives, this was debated at length last month
IIRC. I don't recall whether it ended conclusivelty.
Lee
next prev parent reply other threads:[~2005-02-22 22:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-22 21:55 reading the same entropy twice Bob O'Neill
2005-02-22 22:08 ` Lee Revell [this message]
2005-02-23 6:39 ` Matt Mackall
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=1109110092.31071.47.camel@krustophenia.net \
--to=rlrevell@joe-job.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmoneill@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.