]> git.localhorst.tv Git - blobs.git/commitdiff
the return of positive random numbers
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 8 Dec 2017 22:47:54 +0000 (23:47 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 8 Dec 2017 22:47:54 +0000 (23:47 +0100)
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 {