randomBytes function

List<int> randomBytes(
  1. int byteLength
)

Implementation

List<int> randomBytes(int byteLength) {
  DartRandom rn = new DartRandom(new Random.secure());
  return rn.nextBytes(byteLength);
}