RandomBytes typedef

RandomBytes = Uint8List Function(int n)

A source of (pseudo-)randomness: returns exactly n fresh bytes.

This mirrors the randombytes(k) contract used throughout the Falcon reference implementation, which lets us inject either a cryptographically secure source (production) or a deterministic ChaCha20 stream (tests, reproducible signing, cross-validation against the reference).

Implementation

typedef RandomBytes = Uint8List Function(int n);