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
Type: ubyte[]

Fill this buffer with random data.

additionalInput
Type: ubyte[]

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

Meta