FortunaPRNG class

The FortunaPRNG class represents an implementation of the Fortuna pseudorandom number generator (PRNG) algorithm.

Fortuna is a cryptographic PRNG designed to provide a strong source of randomness, suitable for various security and cryptographic applications.

The class includes methods for initializing and generating random data.

Constructors

FortunaPRNG([List<int>? seed])
Constructor for the FortunaPRNG class, initializing the pseudorandom number generator (PRNG).

Properties

hashCode int
The hash code for this object.
no setterinherited
nextDouble double
no setter
nextUint32 int
no setter
nextUint8 int
Generates and returns the next 8 bits (1 byte) of pseudorandom data from the Fortuna PRNG.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nextBytes(int length) List<int>
Generates and returns a List<int> containing pseudorandom data of the specified length from the Fortuna PRNG.
nextInt(int max) int
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