1
0
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:
Martine Lenders 2016-01-27 02:20:11 +01:00
commit 94bbd055a5

View File

@ -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 {