This produces a list of count random bytes.
count
List<int> generateRandomBytes(int count) { return List.generate(count, (_) => _rand.nextInt(256)); }