Skip to content

xoshiro128pp

xoshiro128pp(seed?): Xoshiro128pp

Defined in: src/engine/xoshiro128pp.ts:113

xoshiro128++ — 128 bits of state, the default engine.

Fast, small, and passes BigCrush. Its period of 2^128-1 is far more than any single program will draw, but it is not cryptographic: a few outputs are enough to recover the state and predict the rest.

Seed

Xoshiro128pp

const source = xoshiro128pp(42);
source.nextUint32(); // 167929222
new Random(source).integer(1, 6); // 3