Skip to content

Commit

Permalink
boards: riscv: rv32m1: use xoroshiro as default RNG
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dleach02 authored and carlescufi committed Nov 8, 2019
1 parent cb03eba commit d65ddcd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/entropy/Kconfig.rv32m1
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d65ddcd

Please sign in to comment.