rng/generators/LCG/lehmer.h
2025-07-07 10:27:51 +01:00

17 lines
414 B
C++

#pragma once
#include "../generator.h"
#include <cstdint>
namespace splat {
class lehmer_generator : public PRNG {
public:
lehmer_generator(uint32_t genSeed);
uint32_t generate() override;
std::string getName() override;
private:
static const uint64_t a = 7759097958782935LL;
static const uint64_t m = 18055400005099021LL;
};
}