FixedNonceGenerator constructor

FixedNonceGenerator(
  1. Uint8List seed
)

Creates a predictable generator using seed bytes.

HINT: Provide at least 8 bytes to avoid repetition within one nonce.

Implementation

FixedNonceGenerator(Uint8List seed)
    : _seed = Uint8List.fromList(seed), // defensive copy
      assert(seed.isNotEmpty, 'seed must not be empty');