fillBytes

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

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.