From 4ad345447384ae9327cab0977b95d0b67f8bde57 Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 13 Apr 2022 13:44:05 +0800 Subject: Simplify bias_ctx's constructor. --- viewport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewport.h') diff --git a/viewport.h b/viewport.h index 72e938e..51159c9 100644 --- a/viewport.h +++ b/viewport.h @@ -27,7 +27,7 @@ class bias_ctx { public: bias_ctx() : enabled(false) {} - bias_ctx(bool enabled, uint64_t seed = 0UL) : enabled(enabled), mt(std::mt19937_64{seed}) {} + bias_ctx(uint64_t seed) : enabled(true), mt(std::mt19937_64{seed}) {} void operator()(double &bx, double &by) { if (enabled) { -- cgit v1.2.3