PractRand 0.96 Validation
TrueEntropy hybrid output was tested against PractRand 0.96 - a rigorous statistical battery widely regarded as the gold standard for PRNG quality testing. The output passed all 157 tests across 32 GB with zero anomalies detected at any checkpoint. Everything needed to regenerate the exact same 32 GB stream is published below.
What is PractRand?
PractRand (Practically Random) is an open-source C++ statistical testing suite for random number generators. It is considered more demanding than NIST SP800-22 because it scales continuously - running more tests at each power-of-two data boundary and detecting weaknesses that only emerge at large volumes. A weak PRNG will typically fail between 1 MB and 16 MB. Cryptographic-grade generators are expected to pass well beyond 32 GB.
Test Methodology
Entropy source
10,485,760 bytes (10 MB) of true quantum random numbers generated via IBM Quantum hardware (ibm_fez, 156-qubit system) using 8-qubit Hadamard circuits, verified 7/7 by NIST SP800-22. This seed file is published below.
Hybrid expansion
The quantum dataset seeds a ChaCha20 stream cipher, mirroring the production hybrid architecture. The quantum bytes are prepended to the keystream to produce the full test stream. Exact parameters:
| Parameter | Value |
|---|---|
| Cipher | ChaCha20 as specified in RFC 8439 (20 rounds, 32-bit block counter, 96-bit nonce) |
| Key | seed[0:32] - the first 32 bytes of the seed |
| 16-byte IV | seed[32:44] || 00 00 00 00 - the next 12 bytes of the seed followed by four zero bytes, in the OpenSSL / Python cryptography layout (counter first, then nonce) |
| Initial block counter | seed[32:36] as a little-endian uint32 (0xa5f39506). It doesn't wrap within 32 GiB |
| RFC 8439 nonce | seed[36:44] || 00 00 00 00 |
| Stream | seed || keystream: all 10,485,760 seed bytes, followed by the raw keystream (ChaCha20 applied to zero bytes) |
| Total length | 235 bytes (34,359,738,368 bytes, 32 GiB) |
| Stream SHA-256 | 55dea154e726f1ba91c5f21355375db211e7b90617971947e0da059db8e8f38a |
Reproduce the Results
The stream is deterministic, so anyone can regenerate it byte for byte from the published seed. The generator streams
to stdout, so no 32 GB file needs to be stored. You need Python 3 with the
cryptography package and a PractRand 0.96 build.
Downloads
| File | Description |
|---|---|
| raw_full.bin | 10 MB quantum seed (IBM ibm_fez). SHA-256 b0940f079dc5236b287033df4aed6d32f1ba306e34c6a60531f055f33b42b31b |
| gen_hybrid_stream.py | Stream generator. It checks the seed's SHA-256, then writes the 32 GiB stream to stdout |
| SHA256SUMS | Checksums for the two files above |
| stream_32GiB.sha256 | SHA-256 of the full 32 GiB stream, in sha256sum -c format |
Commands
The ChaCha20 keystream can also be checked independently with OpenSSL, which takes the same 16-byte IV (4-byte little-endian counter followed by the 12-byte nonce). The output should match the generator's stream starting at byte 10,485,760:
Results
Original run: 2026-04-24. On 2026-11-04 the run was repeated on the regenerated stream with the commands above, and
every checkpoint reported the same test counts with no anomalies. Only the timings differ, because the hardware was faster.
The 128 MB and 256 MB reports in the 2026-11-04 repeat came from separate runs with -tlmax 128M and -tlmax 256M. PractRand doesn't
print those early checkpoints when it processes them in under a second.
| Stream Length | Tests Run | Anomalies | Status |
|---|---|---|---|
| 128 MB | 102 | 0 | Pass |
| 256 MB | 110 | 0 | Pass |
| 512 MB | 118 | 0 | Pass |
| 1 GB | 125 | 0 | Pass |
| 2 GB | 132 | 0 | Pass |
| 4 GB | 139 | 0 | Pass |
| 8 GB | 145 | 0 | Pass |
| 16 GB | 151 | 0 | Pass |
| 32 GB | 157 | 0 | Pass |
Full output (2026-04-24)
How the stream was regenerated (2026-11-04)
The 32 GB input file from the April run wasn't kept, and this page originally gave only the PractRand command. After a reader asked how to reproduce the result, we rebuilt the stream from the same quantum seed using the ChaCha20 call recorded in our April test notes. We also corrected the parameter description: it previously said "counter 0, nonce = bytes 33-44", but the April code passed those 12 bytes plus four zero bytes as the 16-byte IV shown in the table above. April's run didn't record a hash of its input, so we can't prove the rebuilt stream is byte-for-byte identical. It comes from the recorded code, and it reproduces the April output exactly at all nine checkpoints. Before rebuilding the April stream, we also ran a version with counter 0 and nonce = bytes 33-44, matching the old description. It also passed 157/157 at 32 GB with no failures, with two "unusual" flags (PractRand's lowest level) at 1 GB and 16 GB.
Context & Comparison
| Test Suite | Tests | Scale | TrueEntropy Result |
|---|---|---|---|
| NIST SP800-22 | 15 tests | ~1 MB | 15/15 Pass |
| PractRand 0.96 | 157 tests | 32 GB | 157/157 Pass |
| Typical commercial CSPRNG | varies | 1–4 GB | industry baseline |
Caveats
These results are statistical evidence, not a cryptographic proof. PractRand tests detect structural patterns and biases; they do not evaluate key security or resistance to cryptanalysis. The quantum seed (IBM Fez hardware) is the irreducible entropy source - the ChaCha20 expansion is computationally secure, not information-theoretically secure. The quantum seed published here is a dedicated test dataset and is not used to key any production stream.