bn::random class
#include <bn_random.h>

Fast, deterministic random number generator.

Contents

Its current implementation is a Marsaglia's xorshf generator.

See https://github.com/raylee/xorshf96/blob/master/xorshf96.c

Public functions

auto get() -> unsigned constexpr
Returns a new random unsigned integer, modifying its internal seed in the process.