Skip to content
Snippets Groups Projects
Commit 94bbd055 authored by Martine Lenders's avatar Martine Lenders
Browse files

Merge pull request #4640 from cgundogan/pr/random/initval

sc_random: use a default seed if no xtimer is present
parents e95ce810 d2555af2
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment