newNonce method

  1. @override
List<int> newNonce()
override

Generates a new nonce.

It will have the correct length (nonceLength).

The source of random bytes is Random.secure (a cryptographically secure random number generator) unless a custom random number generator was specified when you constructed the cipher (or your Cryptography instance).

Implementation

@override
List<int> newNonce() => fallback.newNonce();