PqRandom class abstract final

Process-wide source of cryptographic randomness.

Defaults to the platform CSPRNG (Random.secure()). FIPS 140-3 deployments can point generator at a validated module's DRBG so every nonce, salt, and seed pqforge draws comes from inside the module boundary:

PqRandom.generator = myValidatedModule.randomBytes;

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

generator Uint8List Function(int length)
The active generator. Must return exactly the requested number of bytes.
getter/setter pair

Static Methods

useDefault() → void
Restores the platform CSPRNG default.