diff options
author | Jason A. Donenfeld <[email protected]> | 2022-06-07 17:04:38 +0200 |
---|---|---|
committer | Jason A. Donenfeld <[email protected]> | 2022-06-10 11:29:42 +0200 |
commit | 77fc95f8c0dc9e1f8e620ec14d2fb65028fb7adc (patch) | |
tree | 292233e8645cced0dd5de9ed1501298d1a8ec3d0 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 39e0f991a62ed5efabd20711a7b6e7da92603170 (diff) |
random: account for arch randomness in bits
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: [email protected]
Fixes: 12e45a2a6308 ("random: credit architectural init the exact amount")
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions