diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-10-05 17:49:46 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-10-11 17:42:58 -0600 |
commit | cfbd0180a9d6cf8001828444a70aee8ad6466c0b (patch) | |
tree | 0e5ecb9572dcec4ea57279178c6eda6af1d24bcb | |
parent | 7a019f2873511451503790ce8a77ac956d5f2ee4 (diff) | |
download | linux-crypto-cfbd0180a9d6cf8001828444a70aee8ad6466c0b.tar.gz linux-crypto-cfbd0180a9d6cf8001828444a70aee8ad6466c0b.zip |
treewide: use get_random_bytes() when possibledeveldavem/net-next
The prandom_bytes() function has been a deprecated inline wrapper around
get_random_bytes() for several releases now, and compiles down to the
exact same code. Replace the deprecated wrapper with a direct call to
the real function. This was done as a basic find and replace.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> # powerpc
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | crypto/async_tx/raid6test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/async_tx/raid6test.c b/crypto/async_tx/raid6test.c index 9719c752..d3fbee1e 100644 --- a/crypto/async_tx/raid6test.c +++ b/crypto/async_tx/raid6test.c @@ -37,7 +37,7 @@ static void makedata(int disks) int i; for (i = 0; i < disks; i++) { - prandom_bytes(page_address(data[i]), PAGE_SIZE); + get_random_bytes(page_address(data[i]), PAGE_SIZE); dataptrs[i] = data[i]; dataoffs[i] = 0; } |