diff options
Diffstat (limited to 'test/util.h')
| -rw-r--r-- | test/util.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/util.h b/test/util.h index ac0ea74..e123fc2 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); @@ -182,7 +186,7 @@ namespace detail { double t = chrono::duration_cast<chrono::duration<double, milli>>(end - start) .count(); - return 50/t; + return 30/t; } double speed = benchmark(); |
