subsys/random: sys_rand32_get() implementation that uses entropy API

Instead of every hardware number generator driver providing an
implementation of this function, use the random device API to
centralize the implementation of this function.

This is a very simplistic function that can be seen as a stepping stone
to refactor the random number generation in Zephyr.

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
Leandro Pereira 2017-10-13 16:06:16 -07:00 committed by Anas Nashif
commit 8b883a61a3
10 changed files with 52 additions and 43 deletions

View file

@ -9,7 +9,6 @@ config ENTROPY_ESP32_RNG
depends on ENTROPY_GENERATOR && SOC_ESP32
default n
select ENTROPY_HAS_DRIVER
select ENTROPY_DEVICE_ENTROPY_GENERATOR
help
This option enables the entropy number generator for ESP32 SoCs.