From: "David Schwartz" <davids@webmaster.com>
To: "Kernel Linux" <linux-kernel@vger.kernel.org>
Subject: RE: get amount of "entropy" in /dev/random ?
Date: Tue, 2 Oct 2007 08:49:36 -0700 [thread overview]
Message-ID: <MDEHLPKNGKAHNMBLJOLKIEEHHDAC.davids@webmaster.com> (raw)
In-Reply-To: <f36b08ee0710020825x559a1046n6b7a2070d5591320@mail.gmail.com>
> From the userlevel, can I get an estimate of "amount of entropy"
> in /dev/random, that is, the estimate of number of bytes
> readable until it blocks ? Of course multiple processes
> can read bytes and this would not be exact ... but still .. as an upper
> boundary estimate ?
>
> Thanks
> Yakov
Yes. Look in drivers/char/random.c at the random_ioctl handler. You will see
RNDGETENTCNT.
DS
prev parent reply other threads:[~2007-10-02 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-02 15:25 Yakov Lerner
2007-10-02 15:37 ` Michal Schmidt
2007-10-02 15:49 ` David Schwartz [this message]
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=MDEHLPKNGKAHNMBLJOLKIEEHHDAC.davids@webmaster.com \
--to=davids@webmaster.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®