Re: [PATCH 2/2] random: Account for entropy loss due to overwrites

From: H. Peter Anvin
Date: Thu Apr 25 2013 - 10:50:31 EST


On 04/25/2013 07:44 AM, H. Peter Anvin wrote:
>
> OK, so we need to track fractional bits.
>

Ted, Linus: there are two ways we can do this: we can either change the
credit_entropy_bits() interface to take some kind of fractional bits as
interface, or we can change the accounting internally.

The latter has the advantage of being a less invasive change, but the
former has the advantage of making it possible to credit sub-bit entropy.

Do you have a preference? Otherwise I will probably write up the
internal change for now.

-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/