The input key material for HKDF
The salt string; page i uses "<salt>-<i>"
Bytes of output derived per page (32 by default). A
page length of 0 is accepted, as the reference accepts it; the
generator then serves only empty draws and throws InvalidData on
the first request for a byte (where the reference never returns).
Fills the provided buffer with deterministic random bytes.
The buffer to fill with random bytes
Generates a random u32 value.
A deterministic random 32-bit unsigned integer
Generates a random u64 value.
Note: JavaScript numbers can only safely represent integers up to 2^53 - 1, so this returns a BigInt for full 64-bit precision.
A deterministic random 64-bit unsigned integer as BigInt
A deterministic random number generator based on HKDF-HMAC-SHA256.
Implements the RandomNumberGenerator interface from @blockchaincommons/rand (
fillBytes,nextU32,nextU64); draw bytes with rand'srandomBytesandfillRandomBytes.