generateRandom static method

List<int> generateRandom([
  1. int size = 32,
  2. GenerateRandom? random
])

This function generates a random List

Implementation

static List<int> generateRandom([int size = 32, GenerateRandom? random]) {
  if (random != null) {
    _generateRandom = random;
  }

  /// Generate the random bytes of the specified size using the _randomGenerator.
  final r = _generateRandom(size);

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