]> git.baikalelectronics.ru Git - kernel.git/commit
random: add wait_for_random_bytes() API
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 7 Jun 2017 23:58:56 +0000 (19:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 Jun 2017 02:06:28 +0000 (22:06 -0400)
commit442238c2e5c33dd8963da40ea56b3e8596d89c3d
treea41cb88b534c7e50faa9ae889d825b5c6db8a9b7
parent38b72bb57c1207844053bf1649d50ce309f9dd6d
random: add wait_for_random_bytes() API

This enables users of get_random_{bytes,u32,u64,int,long} to wait until
the pool is ready before using this function, in case they actually want
to have reliable randomness.

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