generateRandom static method

List<int> generateRandom([
  1. int size = 32
])

This function generates a random List

Implementation

static List<int> generateRandom([int size = 32]) {
  /// Generate the random bytes of the specified size using the _randomGenerator.
  final r = _generateRandom(size);
  assert(r.length == size, "Incorrect random generted size.");

  /// Return the generated random bytes.
  return r;
}