math docs
    Preparing search index...

    Function create

    • Creates ISAAC-32 PRNG state seeded with seed.

      ISAAC is a fast, high-quality generator: its cycle length is at least 2^40 and ~2^8295 on average, and its output passes stringent statistical tests. Bob Jenkins designed it to resist prediction, but it is not founded on cryptographic theory, so do not rely on it for cryptography — use the Web Crypto API for that.

      A seed of 0 reproduces the reference implementation's unseeded output. For the full-strength 64-bit variant see Isaac64.

      Parameters

      • seed: number = 0

        the seed value (32-bit integer), defaults to 0

      Returns isaac32.Isaac32

      state to pass to sample or next