X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fmath%2FGaloisLFSR.hpp;h=d380e248405a2efb1ae9b65308d3b05b48e09e18;hp=4ce278f92b0fb56b0b34d3eaaf7d89975bbbe13c;hb=27cbcf62c4608f9d3a408e903863f3f5e7e47ff0;hpb=b03c2f42ba325ab909b159a4bc8e7568defdc4c5 diff --git a/src/math/GaloisLFSR.hpp b/src/math/GaloisLFSR.hpp index 4ce278f..d380e24 100644 --- a/src/math/GaloisLFSR.hpp +++ b/src/math/GaloisLFSR.hpp @@ -60,7 +60,7 @@ public: } double UNorm() noexcept { - return double(Next()) / double(std::numeric_limits::max()); + return double(Next()) * (1.0 / double(std::numeric_limits::max())); } template