createRandomFile

fun createRandomFile(dir: Directory, name: String, size: Int, segId: ByteArray)

Creates a file of the specified size with random data.