boards: riscv: rv32m1: use xoroshiro as default RNG

Don't use use the RV32M1 TRNG as a random source since it can
be  quite slow. Instead, use the software implemented xoroshiro
RNG.

Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
David Leach 2019-09-19 13:19:55 +03:00 committed by Carles Cufí
commit d65ddcd7d3

View file

@ -11,3 +11,9 @@ menuconfig ENTROPY_RV32M1_TRNG
help
This option enables the true random number generator (TRNG)
driver based on the RV32M1 TRNG driver.
# Don't use use the RV32M1 TRNG as a random source since it can be quite slow.
# Instead, use the software implemented xoroshiro RNG.
choice RNG_GENERATOR_CHOICE
default XOROSHIRO_RANDOM_GENERATOR if ENTROPY_RV32M1_TRNG
endchoice