]> git.localhorst.tv Git - blobs.git/blobdiff - src/math/GaloisLFSR.hpp
fix resource locator
[blobs.git] / src / math / GaloisLFSR.hpp
index 592c9afb6a989ab14270756ab844b751c5f4f73c..4ce278f92b0fb56b0b34d3eaaf7d89975bbbe13c 100644 (file)
@@ -56,11 +56,11 @@ public:
        }
 
        double SNorm() noexcept {
-               return 2.0 * UNorm() - 1.0;
+               return (2.0 * UNorm()) - 1.0;
        }
 
        double UNorm() noexcept {
-               return double(Next<std::uint64_t>()) * (1.0 / double(std::numeric_limits<std::uint64_t>::max()));
+               return double(Next<std::uint64_t>()) / double(std::numeric_limits<std::uint64_t>::max());
        }
 
        template<class Container>