When a random-number generator passes a standard statistical test suite, what should you conclude about its safety before trusting it in cryptography?
Show answer & explanation
Answer: It is only a first screening; model, entropy, and seed secrecy still need checking.
It is only a first screening; model, entropy, and seed secrecy still need checking. ✓ — Passing statistical tests is useful evidence, but it is only a first screening. NIST SP 800-22 warns that test suites cannot certify a generator's cryptographic suitability or replace cryptanalysis. The source model, available entropy, implementation details, and threat model still decide whether the output is safe. A clean report is encouraging, not a guarantee.
It proves future bits are unpredictable, so the generator is safe for cryptography. — It is tempting to treat a passed test as proof that future bits cannot be predicted, and the output's normal-looking statistics is what makes that idea feel right. But a flawed physical device can contain predictable noise, and a deterministic generator can pass many tests until its internal state is exposed. For cryptography, you need a reason an adversary could not have known the bits in advance, not just a clean histogram.
It makes seed secrecy unnecessary because the output already looks random. — Passing tests can make the output look independent, so it is tempting to think the seed no longer needs protection. For pseudorandom generators, however, the goal is next-output unpredictability even after previous outputs, as long as the seed stays unknown. If the seed becomes known, the whole argument changes; a battery of tests does not make seed exposure harmless.
More Physics in Daily Life questions
- In a warm office that already reads 26 C, which change can make people feel cooler without lowering the thermostat?
- Why might 26 C feel acceptable in a breezy naturally ventilated summer building but too warm in a sealed winter office?
- On a warm, humid day, why can a 27 °C room feel worse once your skin is sweaty?
- Why can moving air make a 27 C room feel cooler without changing the thermometer?
- Why can a desk beside a cold window feel chilly even when the thermostat across the room still reads 22 C?
- In the same 22 C room, why might someone who just climbed stairs feel warm while someone sitting in a T-shirt feels chilly?