summaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorJason A. Donenfeld2017-01-22 16:34:08 +0100
committerTheodore Ts'o2017-01-27 20:25:06 +0100
commitc440408cf6901eeb2c09563397e24a9097907078 (patch)
tree0b6333b3529b2d1608649fdbb2fa9217cdb020d7 /init/main.c
parentrandom: use chacha20 for get_random_int/long (diff)
downloadkernel-qcow2-linux-c440408cf6901eeb2c09563397e24a9097907078.tar.gz
kernel-qcow2-linux-c440408cf6901eeb2c09563397e24a9097907078.tar.xz
kernel-qcow2-linux-c440408cf6901eeb2c09563397e24a9097907078.zip
random: convert get_random_int/long into get_random_u32/u64
Many times, when a user wants a random number, he wants a random number of a guaranteed size. So, thinking of get_random_int and get_random_long in terms of get_random_u32 and get_random_u64 makes it much easier to achieve this. It also makes the code simpler. On 32-bit platforms, get_random_int and get_random_long are both aliased to get_random_u32. On 64-bit platforms, int->u32 and long->u64. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'init/main.c')
0 files changed, 0 insertions, 0 deletions