• Jason A. Donenfeld's avatar
    random: account for arch randomness in bits · 77fc95f8
    Jason A. Donenfeld authored
    Rather than accounting in bytes and multiplying (shifting), we can just
    account in bits and avoid the shift. The main motivation for this is
    there are other patches in flux that expand this code a bit, and
    avoiding the duplication of "* 8" everywhere makes things a bit clearer.
    
    Cc: stable@vger.kernel.org
    Fixes: 12e45a2a ("random: credit architectural init the exact amount")
    Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
    77fc95f8
random.c 47.2 KB