makeRandomIV static method

Uint8List makeRandomIV({
  1. Random? random,
})

Implementation

static Uint8List makeRandomIV({Random? random}) {
  random ??= Random.secure();
  return Uint8List.fromList(List.generate(16, (i) => random!.nextInt(256)));
}