FROST Core TypeScript Library - v0.2.2-alpha.3
    Preparing search index...

    Interface RandomSource

    Interface for a cryptographically secure random number generator.

    This is analogous to Rust's CryptoRng + RngCore trait bounds.

    interface RandomSource {
        fill(array: Uint8Array): void;
    }

    Implemented by

    Index

    Methods

    Methods

    • Fill the provided array with cryptographically secure random bytes.

      Parameters

      • array: Uint8Array

        The byte array to fill with random data

      Returns void