• J
    random: add 8-bit and 16-bit batches · 585cd5fe
    Jason A. Donenfeld 提交于
    There are numerous places in the kernel that would be sped up by having
    smaller batches. Currently those callsites do `get_random_u32() & 0xff`
    or similar. Since these are pretty spread out, and will require patches
    to multiple different trees, let's get ahead of the curve and lay the
    foundation for `get_random_u8()` and `get_random_u16()`, so that it's
    then possible to start submitting conversion patches leisurely.
    Signed-off-by: NJason A. Donenfeld <Jason@zx2c4.com>
    585cd5fe
random.c 48.0 KB