]> git.localhorst.tv Git - blobs.git/blobdiff - src/math/GaloisLFSR.hpp
the return of positive random numbers
[blobs.git] / src / math / GaloisLFSR.hpp
index e2f39ebb5110eb348ea26f57dcb377933a0ee5e6..f9a881c9db32aa2d40ebe9a79adce35c176ce41f 100644 (file)
@@ -60,7 +60,7 @@ public:
        }
 
        double UNorm() noexcept {
-               return double(Next<std::uint64_t>()) * (1.0 / double(std::numeric_limits<std::uint64_t>::max()));
+               return double(Next<std::uint32_t>()) * (1.0 / double(std::numeric_limits<std::uint32_t>::max()));
        }
 
        unsigned int UInt(unsigned int below) noexcept {