From: "David Schwartz" <davids@webmaster.com>
To: "Alex Bligh - linux-kernel" <linux-kernel@alex.org.uk>,
<linux-kernel@vger.kernel.org>
Subject: RE: /dev/random entropy calcs - patch [not related to net devices]
Date: Tue, 21 Aug 2001 15:54:50 -0700 [thread overview]
Message-ID: <NOEJJDACGOHCKNCOGFOMGEMODFAA.davids@webmaster.com> (raw)
In-Reply-To: <9547398.998437243@[169.254.198.40]>
> + time = (__u32)(xtime.tv_usec) ^ (__u32)(xtime.tv_sec);
I would prefer:
time = (__u32)xtime.tv_usec | ( (__u32)(xtime.tv_sec)<<20) );
The way you have it, you collide the two least-significant bits,
potentially losing some entropy.
DS
next prev parent reply other threads:[~2001-08-21 22:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-21 22:40 Alex Bligh - linux-kernel
2001-08-21 22:54 ` David Schwartz [this message]
[not found] <9547398.998437243@_169.254.198.40_>
2001-08-23 1:53 ` Ton Hospel
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=NOEJJDACGOHCKNCOGFOMGEMODFAA.davids@webmaster.com \
--to=davids@webmaster.com \
--cc=linux-kernel@alex.org.uk \
--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
Powered by JetHome