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

    Class SeededRandomSource

    A seeded random source for deterministic testing.

    WARNING: This is NOT cryptographically secure and should ONLY be used for testing!

    Uses a simple xorshift128+ algorithm seeded from the provided seed.

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Create a new SeededRandomSource with the given seed.

      Parameters

      • seed: Uint8Array

        A 32-byte seed

      Returns SeededRandomSource

      Error if the seed is not exactly 32 bytes

    Methods

    • Fill the provided array with cryptographically secure random bytes.

      Parameters

      • array: Uint8Array

        The byte array to fill with random data

      Returns void