bitsig

Randomness tests.

bitsig’s output was run through the NIST SP 800-22 statistical test suite and a chi-square check of how picks are made. Every result is below, including the two sub-tests that fell just short, with what was tested and how to reproduce it. Tested and published on 22 November 2026.

What these tests are for

bitsig doesn’t generate its own randomness. Every result starts from drand, a public randomness beacon run by the League of Entropy, and bitsig turns each drand value into a byte stream with a published method: block(i) = SHA-256(R ‖ seed ‖ uint32_be(i)). It then turns those bytes into a die roll, a pick, a shuffle or groups. These tests check bitsig’s part of that chain: that the byte stream shows no statistical pattern, and that picks land evenly across every option.

Statistical tests can find defects. They can’t prove a value was unpredictable. That rests on drand’s threshold signatures and on SHA-256, and anyone can check any individual result from public data.

NIST SP 800-22

NIST SP 800-22 is the US National Institute of Standards and Technology’s statistical test suite for random number generators. It’s the suite random number certification schemes most often rely on. We used NIST’s own reference code, STS 2.1.2, unmodified.

TestSub-testsLowest pass rateLowest uniformity p-value
Frequency199/1000.983
Block frequency198/1000.596
Cumulative sums299/1000.304
Runs1100/1000.237
Longest run of ones199/1000.760
Binary matrix rank198/1000.637
Discrete Fourier transform199/1000.494
Non-overlapping template14895/1000.002
Overlapping template1100/1000.350
Maurer’s universal1100/1000.883
Approximate entropy198/1000.262
Random excursions860/620.009
Random excursions variant1861/620.163
Serial297/1000.834
Linear complexity199/1000.225

Result: 186 of 188 sub-tests met NIST’s pass rate, and all 188 met its uniformity threshold.

The full NIST output is published unedited: nist-report.txt.

How picks are made

A pick among k options takes a 32-bit number from the stream and uses rejection sampling, so every option is exactly equally likely. We made 200,000 picks for each of seven values of k, over 20 checked drand rounds, and compared the counts with a chi-square test.

Options (k)PicksChi-squareDegrees of freedomp-value
2200,0005.6210.018
6200,0003.0350.70
10200,0008.2790.51
20200,00021.62190.30
37200,00035.26360.50
100200,00097.67990.52
1000200,0001,015.969990.35

All seven are consistent with even picks.

drand’s own audits

Reproduce it

Everything here can be rerun from public material:

Build each sequence from the round and seed above and the sample’s SHA-256 should match.

These are bitsig’s own tests, not a certification. The method is in the specification, with test vectors, and any single result can be checked on the verify page.