mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #4640 from cgundogan/pr/random/initval
sc_random: use a default seed if no xtimer is present
This commit is contained in:
commit
94bbd055a5
@ -40,7 +40,9 @@ int _random_init(int argc, char **argv)
|
||||
printf("PRNG initialized to current time: %d\n", initval);
|
||||
#else
|
||||
(void)initval;
|
||||
printf("xtimer module not compiled in, can't initialize by time.\n");
|
||||
puts("xtimer module not compiled in, can't initialize by time.\n"
|
||||
"Please provide a seed.\n");
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user