lib: random: add get_crypto_bytes interface and use HWRNG if posssible
For crypto applications we need to use some thing else as PRNG.
So provide get_crypto_bytes() and use HWRNG as main source.
PRNG is allowed as fallback if user decided to configure it so.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8eac8a6 commit 07dc37dc9bbf0ddb2a4ef4e7baec07957492d42a
@Oleksij Rempel Oleksij Rempel authored on 22 Mar 2017
Sascha Hauer committed on 30 Mar 2017
Showing 3 changed files
View
include/stdlib.h
View
lib/Kconfig
View
lib/random.c