BC-Seedtool-CLI TypeScript Library - v1.0.0-alpha.16
    Preparing search index...

    Class DeterministicRandomNumberGenerator

    Deterministic random number generator. Matches Rust DeterministicRandomNumberGenerator struct.

    Uses HKDF-HMAC-SHA256 to generate deterministic random data from a seed, with an incrementing salt for each call.

    Index

    Constructors

    Methods

    • Generate deterministic random data. Matches Rust deterministic_random_data method.

      Each call increments the salt and uses HKDF to derive the requested number of bytes.

      Parameters

      • size: number

      Returns Uint8Array