summaryrefslogtreecommitdiff
path: root/test/util.h
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 15:39:23 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 15:39:23 +0100
commit72bd993483453ed8ebc462f1a33385cd355d486f (patch)
treec5592ba1ed2fed79e26ba6158d097c9ceb43f061 /test/util.h
parent98567ec798aa8ca2cfbcb85c774dd470f30e30d4 (diff)
parent35d485bcf6a9ed0a9542628ce4aa94a3326d0884 (diff)
merge mzuenni changes
Diffstat (limited to 'test/util.h')
-rw-r--r--test/util.h8
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();