X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Frand%2Fnoise.cpp;h=664096dc36c5559bb87ae86021072cf2ee0779ab;hb=9ebe2c320fd9f94266ab93fa2f9d9908a0a284d3;hp=de037ef1a7c66aa5d71de9d57a18ff44892e411f;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/rand/noise.cpp b/src/rand/noise.cpp index de037ef..664096d 100644 --- a/src/rand/noise.cpp +++ b/src/rand/noise.cpp @@ -14,24 +14,6 @@ constexpr float one_sixth = 1.0f/6.0f; namespace blank { -GaloisLFSR::GaloisLFSR(std::uint64_t seed) noexcept -: state(seed) { - -} - -bool GaloisLFSR::operator ()() noexcept { - bool result = state & 1; - state >>= 1; - if (result) { - state |= 0x8000000000000000; - state ^= mask; - } else { - state &= 0x7FFFFFFFFFFFFFFF; - } - return result; -} - - SimplexNoise::SimplexNoise(unsigned int seed) noexcept : grad({ { 1.0f, 1.0f, 0.0f },