RngApi class abstract interface

Global ChaCha20 RNG backend interface (seed-once, process-wide).

Backs proving randomness and any other caller needing platform randomness through blockchainUtils.api instead of reaching into the connector.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
isSeeded → bool
True when the global RNG was seeded.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fill({required int length}) → BuBytes
Fill length bytes from the global RNG.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
seed({required List<int> seed32}) → void
Seed the global RNG with exactly 32 bytes. Throws if already seeded.
toString() → String
A string representation of this object.
inherited

Operators

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