secureRandomBytes

actual fun secureRandomBytes(size: Int): ByteArray
expect fun secureRandomBytes(size: Int): ByteArray

Generates cryptographically secure random bytes.

Return

a ByteArray of the specified size filled with secure random bytes.

Parameters

size

the number of random bytes to generate.

actual fun secureRandomBytes(size: Int): ByteArray