[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <470265C1.5040006@redhat.com>
Date: Tue, 02 Oct 2007 17:37:37 +0200
From: Michal Schmidt <mschmidt@...hat.com>
To: Yakov Lerner <iler.ml@...il.com>
CC: Kernel Linux <linux-kernel@...r.kernel.org>
Subject: Re: get amount of "entropy" in /dev/random ?
Yakov Lerner wrote:
> >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
Try ioctl(fd, RNDGETENTCNT, &entropy_count)
Michal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists