fillBytes

abstract fun fillBytes(array: ByteArray, fromIndex: Int = 0, toIndex: Int = array.size)

Fills a subrange with the specified byte array starting from fromIndex inclusive and ending toIndex exclusive with random bytes.

Return

array with the subrange filled with random bytes.

Sources

Link copied to clipboard