random: kconfig: Allow customizing timer initial state

Add a build option to allow changing the initial state used
in the timer based random generator and by the kernel in the
early random number generator.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2023-10-10 10:17:36 -07:00 committed by Johan Hedberg
parent 6c0fad2888
commit a99a0700ba

View file

@ -28,6 +28,14 @@ config TEST_RANDOM_GENERATOR
device-backed random number generator, if available, will be selected by
default even when CONFIG_TEST_RANDOM_GENERATOR=y.
config TIMER_RANDOM_INITIAL_STATE
int "Initial state used by clock based number generator"
default 123456789
help
Initial state value used by TIMER_RANDOM_GENERATOR and
early random number genenator.
choice RNG_GENERATOR_CHOICE
prompt "Random generator"
default ENTROPY_DEVICE_RANDOM_GENERATOR if ENTROPY_HAS_DRIVER