1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Makefile.dep: add auto_init_random MODULE

This commit is contained in:
Francisco Molina 2020-01-16 08:58:25 +01:00
parent a5a036be43
commit 73bf2293bc
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
2 changed files with 3 additions and 1 deletions

View File

@ -754,7 +754,9 @@ ifneq (,$(filter puf_sram,$(USEMODULE)))
endif
ifneq (,$(filter random,$(USEMODULE)))
DEFAULT_MODULE += auto_init_random
USEMODULE += prng
DEFAULT_MODULE += auto_init_random
# select default prng
ifeq (,$(filter prng_%,$(USEMODULE)))
USEMODULE += prng_tinymt32

View File

@ -107,7 +107,7 @@
void auto_init(void)
{
#ifdef MODULE_PRNG
#ifdef MODULE_AUTO_INIT_RANDOM
void auto_init_random(void);
auto_init_random();
#endif