tuweni / org.apache.tuweni.bytes / Bytes / random

random

open static fun random(size: Int): Bytes! (source)

Generate random bytes.

Parameters

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.

Parameters

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.