sc_random.c: use a default seed if no xtimer is present
This commit is contained in:
parent
131cae626c
commit
d2555af269
@ -40,7 +40,9 @@ int _random_init(int argc, char **argv)
|
|||||||
printf("PRNG initialized to current time: %d\n", initval);
|
printf("PRNG initialized to current time: %d\n", initval);
|
||||||
#else
|
#else
|
||||||
(void)initval;
|
(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
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user