]> git.baikalelectronics.ru Git - kernel.git/commit
random: remove rng_has_arch_random()
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 8 Jun 2022 08:31:25 +0000 (10:31 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 10 Jun 2022 09:29:48 +0000 (11:29 +0200)
commitc0236083065a302636a1f2bad9e5a77c857717ab
tree5c34367f464a6317ab8014e345f734a3ca2ad95d
parent45f9f4ac0d5b466b0ba6904369668295e6d73201
random: remove rng_has_arch_random()

With arch randomness being used by every distro and enabled in
defconfigs, the distinction between rng_has_arch_random() and
rng_is_initialized() is now rather small. In fact, the places where they
differ are now places where paranoid users and system builders really
don't want arch randomness to be used, in which case we should respect
that choice, or places where arch randomness is known to be broken, in
which case that choice is all the more important. So this commit just
removes the function and its one user.

Reviewed-by: Petr Mladek <pmladek@suse.com> # for vsprintf.c
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c
include/linux/random.h
lib/vsprintf.c