Nonce constructor

Nonce({
  1. List<int>? bytesOverride,
})

Implementation

Nonce({this.bytesOverride}) {
  bytes = bytesOverride ??
      List<int>.generate(
        16,
        (_) => Random.secure().nextInt(255),
        growable: false,
      );
}