blob: 302612e9e2d858d4b32143ef588d1ae823f44b2b [file] [log] [blame]
#include "aos/testing/random_seed.h"
#include <cstdlib>
namespace aos::testing {
int RandomSeed() {
const char *from_environment = getenv("TEST_RANDOM_SEED");
if (from_environment != nullptr) {
return atoi(from_environment);
}
return 1;
}
} // namespace aos::testing