diff options
| author | untodesu <kirill@untode.su> | 2025-06-25 00:44:36 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-06-25 00:44:36 +0500 |
| commit | 88c01588aa0830e219eaa62588839e4d1e2883ce (patch) | |
| tree | 602bb27dd3399aab4aae8c19630e3b7a8dac824b /core/randomizer.hh | |
| parent | 99cf6cca8dbbc1e563c10cf0167432d3d8af9783 (diff) | |
| download | voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.tar.bz2 voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.zip | |
Clang-format the entire source code
Diffstat (limited to 'core/randomizer.hh')
| -rw-r--r-- | core/randomizer.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/randomizer.hh b/core/randomizer.hh index 62bdf9b..b60b839 100644 --- a/core/randomizer.hh +++ b/core/randomizer.hh @@ -8,8 +8,8 @@ public: explicit Randomizer(void); explicit Randomizer(std::uint64_t seed); virtual ~Randomizer(void) = default; - void add(const T &value); - const T &get(void); + void add(const T& value); + const T& get(void); void clear(void); private: @@ -35,14 +35,14 @@ inline Randomizer<T>::Randomizer(std::uint64_t seed) } template<typename T> -inline void Randomizer<T>::add(const T &value) +inline void Randomizer<T>::add(const T& value) { m_vector.push_back(value); m_dist = std::uniform_int_distribution<std::size_t>(0, m_vector.size() - 1); } template<typename T> -inline const T &Randomizer<T>::get(void) +inline const T& Randomizer<T>::get(void) { return m_vector.at(m_dist(m_twister)); } |
