generateRandomBytes function

List<int> generateRandomBytes(
  1. int count
)

This produces a list of count random bytes.

Implementation

List<int> generateRandomBytes(int count) {
  return List.generate(count, (_) => _rand.nextInt(256));
}