generateRandomBytes function
Implementation
Uint8List generateRandomBytes([Random? random, int size = 32]) {
final r = random ?? Random();
return Uint8List.fromList(
List<int>.generate(size, (i) => r.nextInt(256)),
);
}
Uint8List generateRandomBytes([Random? random, int size = 32]) {
final r = random ?? Random();
return Uint8List.fromList(
List<int>.generate(size, (i) => r.nextInt(256)),
);
}