Non-cryptographic PRNGs

Isaac64

Bob Jenkins' fast array-based generator, designed as a CSPRNG but not recommended

unverified Root API only Not cryptographic
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Isaac64

Isaac64 is one of 2 ISAAC variants in the NextSSL registry, a non-cryptographic pseudorandom generator. It uses a 1–268,435,456-byte output and a 32-byte seed. Its registry entry cites ISAAC-64 (Jenkins 1996), NOT cryptographically secure for new designs. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

ISAAC (Indirection, Shift, Accumulate, Add and Count) is a fast pseudorandom number generator designed in 1996 with cryptographic use in mind. It has no practical break, but it has not received the analysis expected of a modern cryptographic primitive and has known weak-state issues, so it should not be used for new security designs.

ISAAC keeps an array of 256 words plus three accumulators. Each step mixes an accumulator with shifted copies of itself and with an array entry selected indirectly by the state, writes back a new array entry and outputs a value fetched indirectly as well. The indirection makes outputs depend on state in a data-dependent way, which was intended to frustrate cryptanalysis and also yields high speed.

Published analysis has found weak initial states and distinguishing properties, and data-dependent memory lookups make constant-time implementation impractical, leaking through cache timing. ISAAC was historically used in some Unix tools such as the shred utility. Two variants are present: isaac (32-bit words) and isaac64 (64-bit words). Modern operating systems and cryptographic libraries now use ChaCha20-based generators for this role instead.

History

1996–1996
  1. ISAAC published by Robert J. Jenkins Jr.

How it works

  1. Initialise the 256-word array and accumulators from a seed with a mixing function.
  2. For each word, update the accumulator with shifts and an array entry, using state bits as an index.
  3. Write a new array entry and output a value read through a second indirection.
  4. Increment the counter after each batch of 256 outputs.

Security notes

Not recommended for cryptographic use. ISAAC was intended as a CSPRNG, but weak states, limited cryptanalysis and cache-timing leakage from secret-dependent indexing mean it is not recommended. Use the OS RNG, ChaCha20-based generators or HMAC_DRBG instead.

Typical uses

Reproducing legacy outputs that depend on ISAACFast non-security random streamsHistorical study of stream-generator design

Sizes

FieldBytesMeaning
out1 – 268,435,456Output
seed32Seed

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
buf = root.call("rng_fill", "isaac64", "seed=42", 32)[0]   # not for keys

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other ISAAC variants

1

Similar names

Looking for something else?

Frequently asked questions

What is Isaac64?

Isaac64 is a PRNG in the ISAAC family. ISAAC (Indirection, Shift, Accumulate, Add and Count) is a fast pseudorandom number generator designed in 1996 with cryptographic use in mind.

What are the Isaac64 sizes?

In NextSSL, Isaac64 uses: output 1 to 268,435,456 bytes.

Who designed Isaac64 and when?

Isaac64 belongs to the ISAAC family, first published in 1996 by Robert J. Jenkins Jr.. Its origin: Jenkins, ISAAC (Fast Software Encryption 1996).

Which standards define Isaac64?

Isaac64 is referenced by ISAAC-64 (Jenkins 1996), NOT cryptographically secure for new designs.

Is Isaac64 safe to use?

Isaac64 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other ISAAC variants are there?

NextSSL also registers isaac in the ISAAC family.