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:
parent
a5a036be43
commit
73bf2293bc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user