Re: [PATCH 2/2] random: Account for entropy loss due to overwrites
From: H. Peter Anvin
Date: Thu Apr 25 2013 - 11:20:03 EST
On this subject, I assume this is a bug?
871
872 if (r->entropy_count / 8 >= nbytes + reserved)
873 r->entropy_count -= nbytes*8;
874 else
875 r->entropy_count = reserved;
876
[specifically the use of "reserved" as opposed to "reserved*8" on line 875?]
-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/