generateRandomBytes

abstract fun generateRandomBytes(output: Buffer, size: Int)(source)

Fills output with size bytes of randomness. output must hold at least size bytes, writing beyond its capacity is undefined behavior.