random_bytes library

Generates sequences of (pseudo-)random bytes. Maps libsodium's crypto_randombytes_* api.

Properties

seedBytes int
final

Functions

buffer(int size) UnmodifiableUint8ListView
Generates a sequence of size random numbers
bufferDeterministic(int size, Uint8List seed) UnmodifiableUint8ListView
Generates a sequence of size pseudo-random numbers. seed must be seedBytes long. The same seed produces the same sequence of pseudo-random numbers.