addSeed

Helper function for prng.

@safe nothrow @nogc
void
addSeed
(
R
T...
)
(
ref R rng
,
in T seed
)

Parameters

rng R

The RNG to put the data into.

seed T

The seed to update the RNG with.

Examples

ubyte[4] buf; RNG rng; rng.addSeed(cast(ubyte) 0x01, buf, buf[0..2]);

Meta