ChaCha20Rng class

Mixed-in types

Constructors

ChaCha20Rng(List<int> seed, {int streamId = 0})

Properties

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

Methods

nextBool() bool
Generates a random boolean value.
inherited
nextBytes(int length) List<int>
Returns length bytes from the RNG
override
nextDouble() double
Generates a non-negative random floating point value uniformly distributed in the range from 0.0, inclusive, to 1.0, exclusive.
inherited
nextInt(int max) int
Generates a non-negative random integer uniformly distributed in the range from 0, inclusive, to max, exclusive.
inherited
nextU32({Endian endian = Endian.little}) int
inherited
nextU64({Endian endian = Endian.little}) BigInt
inherited
nextU8() int
inherited
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