CryptoRandom.nextBytes

void nextBytes(ubyte[] buffer)

Fills the provided buffer with random bytes.

Parameters

bufferThe buffer to fill.

Throws

CryptoException when the entropy source fails or is

unavailable; never returns silently-unfilled bytes.