From: Daniel Karbach Date: Fri, 8 Dec 2017 22:47:54 +0000 (+0100) Subject: the return of positive random numbers X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=commitdiff_plain;h=062538c008af86ddb9a9fa2302c1571140e15467 the return of positive random numbers --- diff --git a/src/math/GaloisLFSR.hpp b/src/math/GaloisLFSR.hpp index e2f39eb..f9a881c 100644 --- a/src/math/GaloisLFSR.hpp +++ b/src/math/GaloisLFSR.hpp @@ -60,7 +60,7 @@ public: } double UNorm() noexcept { - return double(Next()) * (1.0 / double(std::numeric_limits::max())); + return double(Next()) * (1.0 / double(std::numeric_limits::max())); } unsigned int UInt(unsigned int below) noexcept {