commit | 89548752d85e97bba241cf2c3299e8f3bac17007 | [log] [tgz] |
---|---|---|
author | Jason A. Donenfeld <Jason@zx2c4.com> | Wed Jun 07 19:58:56 2017 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Jun 25 11:44:58 2022 +0200 |
tree | 475b93225d7343eafc3c0544934e5805f90adc3d | |
parent | 260fa1f3183a8453c251f018f87a3a34b02418fb [diff] |
random: add wait_for_random_bytes() API commit e297a783e41560b44e3c14f38e420cba518113b8 upstream. 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> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>