addSeed

Helper function for prng.

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

Parameters

rng
Type: R

The RNG to put the data into.

seed
Type: T

The seed to update the RNG with.

Examples

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

Meta