Fixed const issue.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-04-22 22:54:57 +02:00
1 parent 535b68bb8c
commit 24aff14745
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ namespace Arbutils {
explicit inline constexpr BaseRandom(uint_fast32_t seed) noexcept explicit inline constexpr BaseRandom(uint_fast32_t seed) noexcept
: _seed(seed), _rng(seed), _distribution(0.0, 1.0){}; : _seed(seed), _rng(seed), _distribution(0.0, 1.0){};
inline RandomT& GetRandomEngine() const noexcept { return _rng; } inline RandomT& GetRandomEngine() noexcept { return _rng; }
/// Gets a random float between 0.0 and 1.0. /// Gets a random float between 0.0 and 1.0.
[[nodiscard]] inline constexpr float GetFloat() noexcept { return static_cast<float>(GetDouble()); } [[nodiscard]] inline constexpr float GetFloat() noexcept { return static_cast<float>(GetDouble()); }