Function Crypto.generateRandomBytes

Generates a PoolByteArray of cryptographically secure random bytes with given size.

PoolArray!(ubyte) generateRandomBytes (
  const(long) size
) nothrow @nogc;