]> git.localhorst.tv Git - blobs.git/blobdiff - src/math/GaloisLFSR.hpp
introduce random genetic mutations
[blobs.git] / src / math / GaloisLFSR.hpp
index 592c9afb6a989ab14270756ab844b751c5f4f73c..d380e248405a2efb1ae9b65308d3b05b48e09e18 100644 (file)
@@ -56,7 +56,7 @@ public:
        }
 
        double SNorm() noexcept {
-               return 2.0 * UNorm() - 1.0;
+               return (2.0 * UNorm()) - 1.0;
        }
 
        double UNorm() noexcept {