You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shuffle3/lean/include/rng/drng.h

20 lines
276 B

#include "impl.hpp"
namespace rng
{
struct drng : public RNG
{
inline drng(std::uint32_t seed) : state(seed){sample();}
inline drng() : drng(1){}
static drng from_time();
int rand();
protected:
double sample() override;
private:
std::uint32_t state;
};
}