lkml.org 
[lkml]   [2013]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] random: Account for entropy loss due to overwrites
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



\
 
 \ /
  Last update: 2013-04-25 18:01    [W:0.055 / U:1.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site