summaryrefslogtreecommitdiff
path: root/viewport.h
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-13 13:44:05 +0800
committerKeuin <[email protected]>2022-04-13 13:44:05 +0800
commit4ad345447384ae9327cab0977b95d0b67f8bde57 (patch)
treef74d62e7bb3118f73e7dbb4500b80561d5c0d640 /viewport.h
parentd883ff94342f418b87ac2333b3fdf779bd2dfa0f (diff)
Simplify bias_ctx's constructor.
Diffstat (limited to 'viewport.h')
-rw-r--r--viewport.h2
1 files changed, 1 insertions, 1 deletions
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) {