diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-11-16 15:39:23 +0100 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-11-16 15:39:23 +0100 |
| commit | 72bd993483453ed8ebc462f1a33385cd355d486f (patch) | |
| tree | c5592ba1ed2fed79e26ba6158d097c9ceb43f061 /test/util.h | |
| parent | 98567ec798aa8ca2cfbcb85c774dd470f30e30d4 (diff) | |
| parent | 35d485bcf6a9ed0a9542628ce4aa94a3326d0884 (diff) | |
merge mzuenni changes
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(); |
