open static fun random(size: Int): Bytes!
(source)
Generate random bytes.
size
- Int: The number of bytes to generate.
Return
Bytes!: A value containing the desired number of random bytes.
open static fun random(size: Int, generator: Random!): Bytes!
(source)
Generate random bytes.
size
- Int: The number of bytes to generate.
generator
- Random!: The generator for random bytes.
Return
Bytes!: A value containing the desired number of random bytes.