aboutsummaryrefslogtreecommitdiff
path: root/src/randomization
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-04-04 11:13:59 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commit9a38e00a44ad3171c881a2c8af44f7558a8a8c0b (patch)
treedd27435350c49d31c2596e1a4ae745a40c1025d5 /src/randomization
parenta93270968f9aab5d8c1c528daf02c8b27d09eed7 (diff)
style: fix random number generator indentation
Diffstat (limited to 'src/randomization')
-rw-r--r--src/randomization/generator.cpp4
-rw-r--r--src/randomization/generator.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/randomization/generator.cpp b/src/randomization/generator.cpp
index 2febf16..49adb97 100644
--- a/src/randomization/generator.cpp
+++ b/src/randomization/generator.cpp
@@ -5,8 +5,8 @@ RandomNumberGenerator::RandomNumberGenerator(const uint32_t &seed) noexcept
this->_generator = std::make_unique<std::mt19937>(seed);
}
-auto RandomNumberGenerator::in_range(const uint32_t &a,
- const uint32_t &b) const noexcept -> uint32_t
+auto RandomNumberGenerator::in_range(const uint32_t &a, const uint32_t &b) const noexcept
+ -> uint32_t
{
auto random_distribution = std::uniform_int_distribution<uint32_t>(a, b);
diff --git a/src/randomization/generator.hpp b/src/randomization/generator.hpp
index 98acfde..24b9bd6 100644
--- a/src/randomization/generator.hpp
+++ b/src/randomization/generator.hpp
@@ -10,8 +10,8 @@ class RandomNumberGenerator : public IRandomNumberGenerator
public:
explicit RandomNumberGenerator(const uint32_t &seed) noexcept;
- [[nodiscard]] auto in_range(const uint32_t &a,
- const uint32_t &b) const noexcept -> uint32_t override;
+ [[nodiscard]] auto in_range(const uint32_t &a, const uint32_t &b) const noexcept
+ -> uint32_t override;
private:
std::unique_ptr<std::mt19937> _generator;