HashDRNG.nextBytes

Generate pseudo random bytes.

struct HashDRNG(D, uint seedlen)
nothrow @nogc
void
nextBytes
(
ubyte[] buf
,)
if (
isStdDigest!D &&
seedlen % 8 == 0
)

Parameters

buf ubyte[]

Fill this buffer with random data.

additionalInput ubyte[]

Can provide more entropy. Similar but not equal to callin addSeed() before.

Meta