Commit a55b0793 authored by Paul's avatar Paul
Browse files

Formatting

parent 78feaa4b
...@@ -30,18 +30,14 @@ constexpr T normalize(unsigned long z) ...@@ -30,18 +30,14 @@ 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 x = 123456789; unsigned long x = 123456789;
unsigned long y = 362436069; unsigned long y = 362436069;
unsigned long z; unsigned long z;
xorshf96_generator(unsigned long seed = 0) xorshf96_generator(unsigned long seed = 0) : z(521288629ULL ^ seed) {}
: 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