blob: 9e7136f1f82d98ece0f41d2d729d605ff58cf30e [file] [log] [blame]
Brian Silverman33d0d6e2016-05-15 23:33:39 -07001#include "aos/testing/random_seed.h"
2
3#include <stdlib.h>
4
5namespace aos {
6namespace testing {
7
8int RandomSeed() {
9 const char *from_environment = getenv("TEST_RANDOM_SEED");
10 if (from_environment != nullptr) {
11 return atoi(from_environment);
12 }
13 return 1;
14}
15
16} // namespace testing
17} // namespace aos