RandomBytes class
Provides a set of functions to generate unpredictable data, suitable for creating secret keys
Constructors
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 Methods
-
buffer(
int size) → Uint8List - Generates an unpredictable sequence of bytes of specified size.
-
bufferDeterministic(
int size, Uint8List seed) → Uint8List - Generates a sequence of bytes of specified size. For a given seed, this function will always output the same sequence.
-
random(
) → int - Generates an unpredictable value between 0 and 0xffffffff (included).
-
randomSeed(
) → Uint8List - Generates a random seed for use in bufferDeterministic.
-
uniform(
int upperBound) → int - Generates an unpredictable value between 0 and upperBound (excluded).