]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50f26cbc28aaf5778745eb568347c2cafc1af3ec
tree14608d249e7d2a5cd33b5ec86e28943330f74608
parent442238c2e5c33dd8963da40ea56b3e8596d89c3d
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