The OpenD Programming Language

XoshiroEngine.seed

Compatibility with Phobos library methods. Presents this RNG as an InputRange.

This struct disables its default copy constructor and so will only work with Phobos functions that "do the right thing" and take RNGs by reference and do not accidentally make implicit copies.

struct XoshiroEngine(UIntType, uint nbits, string scrambler, uint A, uint B, uint I, uint R, UIntType S, UIntType T)
void
seed
()
(
UIntType x0
)
if (
(
is(UIntType == uint) ||
is(UIntType == ulong)
)
&&
"**" == scrambler
&&
(
UIntType.sizeof * 8 * 4 == nbits ||
UIntType.sizeof * 8 * 8 == nbits
)
)

Meta