2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-19 04:22:17 +00:00

Merge pull request #142 from boostorg/splitmix

This commit is contained in:
Matt Borland
2025-10-24 08:40:06 +02:00
committed by GitHub

View File

@@ -116,10 +116,7 @@ public:
/** Advances the state of the generator by @c z. */
inline void discard(std::uint64_t z) noexcept
{
for (std::uint64_t i {}; i < z; ++i)
{
next();
}
state_ += z * UINT64_C(0x9E3779B97F4A7C15);
}
/**