Random class abstract final

RAND_bytes / RAND_priv_bytes as Dart.

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

bytes(int length) → Uint8List
length random bytes from the public DRBG (RAND_bytes).
privateBytes(int length) → Uint8List
length random bytes from the private DRBG (RAND_priv_bytes), meant for long-term secrets such as keys.