random: add get_random_{bytes,u32,u64,int,long,once}_wait family
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 8 Jun 2017 00:05:02 +0000 (20:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 Jun 2017 02:06:28 +0000 (22:06 -0400)
commitda9ba564bd683374b8d319756f312821b8265b06
tree14608d249e7d2a5cd33b5ec86e28943330f74608
parente297a783e41560b44e3c14f38e420cba518113b8
random: add get_random_{bytes,u32,u64,int,long,once}_wait family

These functions are simple convenience wrappers that call
wait_for_random_bytes before calling the respective get_random_*
function.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
include/linux/net.h
include/linux/once.h
include/linux/random.h