sc_random.c: use a default seed if no xtimer is present

This commit is contained in:
Cenk Gündoğan 2016-01-14 21:31:13 +01:00
parent 131cae626c
commit d2555af269

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 {