Commit 78feaa4b authored by Paul's avatar Paul
Browse files

Fix ice on gcc

parent 611bc847
...@@ -30,13 +30,18 @@ constexpr T normalize(unsigned long z) ...@@ -30,13 +30,18 @@ constexpr T normalize(unsigned long z)
return z % max; return z % max;
} }
template <class T> template <class T>
struct xorshf96_generator struct xorshf96_generator
{ {
unsigned long seed = 0;
unsigned long x = 123456789; unsigned long x = 123456789;
unsigned long y = 362436069; unsigned long y = 362436069;
unsigned long z = 521288629ULL ^ seed; unsigned long z;
xorshf96_generator(unsigned long seed = 0)
: z(521288629ULL ^ seed)
{}
constexpr T operator()() noexcept constexpr T operator()() noexcept
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment