NativeRngApi class

RngApi backed by a native (FFI/platform) implementation.

Implemented types

Constructors

NativeRngApi(BuRngApi api)
Creates a native RNG backend over api.
const

Properties

api → BuRngApi
Underlying connector backend (platform ChaCha20 RNG core).
final
hashCode → int
The hash code for this object.
no setterinherited
isSeeded → bool
Whether the global RNG was seeded.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fill({required int length}) → BuBytes
Fills length random bytes and returns them; throws CryptoException on native failure.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
seed({required List<int> seed32}) → void
Seeds the global RNG with 32-byte seed32; throws CryptoException on native failure or if already seeded.
override
toString() → String
A string representation of this object.
inherited

Operators

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