From 062538c008af86ddb9a9fa2302c1571140e15467 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 8 Dec 2017 23:47:54 +0100 Subject: [PATCH] the return of positive random numbers --- src/math/GaloisLFSR.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2