summaryrefslogtreecommitdiff
path: root/test/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/util.h')
-rw-r--r--test/util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/util.h b/test/util.h
index bfa35d8..6f23b82 100644
--- a/test/util.h
+++ b/test/util.h
@@ -24,7 +24,11 @@ namespace details {
}
namespace Random {
- mt19937_64 rng(3141592653589793238ll);
+ #ifdef SEED
+ mt19937_64 rng(SEED);
+ #else
+ mt19937_64 rng(3141592653589793238ll);
+ #endif
template<typename T = ll>
T integer(T l, T r) {
return uniform_int_distribution<T>(l, r-1)(rng);