randomBytes

fun randomBytes(length: Int): ByteArray

Generates and returns a random array of bytes of an arbitrary length, or an empty ByteArray if the length parameter is equal to zero.

Author

soykdan@gmail.com

Throws

If the length parameter is less than zero.