Skip to content

Commit

Permalink
sc_random.c: use a default seed if no xtimer is present
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundogan committed Jan 26, 2016
1 parent 131cae6 commit d2555af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/shell/commands/sc_random.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d2555af

Please sign in to comment.