← Back to section · Research & Analysis

Experiment Design: What an Entropy-Source Evaluation Must Actually Measure

Post-quantum algorithms consume far more randomness than classical ones, and entropy-source quality on the sampling path becomes private-key quality directly. This design builds a workable entropy-source evaluation along two lines — health testing and entropy estimation — and draws the boundary between what it can and cannot prove.

Published 22 November 2026 · 5 min read · PQ Frontier

Experiment Design: What an Entropy-Source Evaluation Must Actually Measure
AI-generated site artwork
Video explainer · Experimental Research: Reproducible Designs

The research question: private-key quality is capped by the entropy source

Lattice- and hash-based schemes are hungrier for randomness than classical algorithms: ML-KEM key generation expands a seed into matrices and noise, ML-DSA’s signature sampling — randomised or deterministic variant alike — is sensitive to the quality of its random input, and stateful signature seed management stakes long-term security on the initial entropy. If the entropy source is broken, all the cryptography downstream is built on sand; yet entropy problems are among the hardest to measure, because a bit stream that looks perfectly random may come from a perfectly predictable deterministic process.

The experiment’s question therefore splits in two. First, how much min-entropy does the source’s raw noise output actually carry, by what estimation method, and with what confidence? Second, does the source fail or degrade in continuous operation, and can health tests catch it in time? The two questions demand two entirely different experiments — offline statistical estimation and online continuous monitoring — and the report must state them separately; blending them into “randomness tests passed” is no conclusion at all.

Sampling design: raw noise, real workload

The first discipline is sampling position: samples must be taken at the noise source’s raw output, before any conditioning (hash compression, whitening). Post-processing can reshape defective raw output into statistically beautiful bit streams; evaluating the source through conditioned output measures the conditioner’s skill, not the source’s quality. The experiment needs the implementation to expose a raw-sample export path; on platforms without one, the evaluation’s conclusion degrades to “system-level black-box observation”, and the report must state the difference in evidence level plainly.

The second discipline is covering real workload and extreme conditions. Sample sizes follow the SP 800-90B framework’s magnitudes: at least on the order of a million sequential samples for entropy estimation, plus restart samples — a stretch of output after each of many restarts of the same device — to check whether entropy accumulation at start-up is sufficient. Post-quantum signing services consume entropy continuously under load, so add a sample set under high-frequency drawing to check whether quality slips when the source is drained quickly (a hardware source’s sampling circuitry failing to recover, for instance). Sample sets at temperature and voltage extremes are non-optional for embedded and hardware platforms. Every sample batch must be logged together with the device state at collection time — firmware version, time since power-on, ambient temperature — or differences between batches will be impossible to attribute.

Entropy estimation: take the conservative, non-IID route

Choose estimation methods on the conservative principle: run the IID check first, and if it fails — as it does for most real entropy sources — take the non-IID route, using a battery of estimators (most-common-value, collision, Markov, compression, and others) and declaring the most conservative result as the entropy claim. Taking the lower bound rather than an average is the spirit of the whole method: estimation errors are asymmetric, since overestimating entropy turns directly into predictable private keys, while underestimating is merely conservative.

Also reconcile the chain from per-sample entropy to per-call entropy: how many bits of raw output each call draws, how conditioning compresses them, and how much entropy the seed finally fed to the algorithm carries — audited level by level. If a post-quantum key-generation seed is nominally 256 bits but carries only a few dozen bits of actual entropy, every parameter discussion upstream is void. The report’s final deliverable should be this reconciliation table, not a lone per-bit entropy figure.

Health tests: designed around failure modes

Health tests verify not the amount of entropy but the source’s survival and stability: the repetition count test watches for output stuck at one value, the adaptive proportion test watches for abnormal frequencies. The experiment must inject failures to validate the health tests themselves: in a test build, replace the noise source with constant output, slowly drifting output and periodic output, and confirm for each that the health tests alarm within the specified sample count without false-alarming on the healthy source. Testing only that a healthy source does not alarm is insufficient — an alarm that has never rung is indistinguishable from no alarm.

Also test the system’s behaviour on failure: when a health test alarms, does the implementation refuse service or degrade and keep producing output? For a signing service, continuing to sign with broken randomness is more dangerous than halting, so the conclusion must record this behaviour explicitly with an assessment.

Interpretation limits and common pitfalls

State the interpretation limit up front: passing a general statistical randomness suite in full shows only that the output has no obvious statistical defects; it cannot prove the amount of entropy — a deterministic algorithm’s output passes such suites easily. Entropy conclusions can only come from estimation against a noise-source model. This boundary is the part of the experiment most easily misread, and the report’s summary should state it proactively.

Four common pitfalls. First, evaluating through conditioned output — the wrong object. Second, testing only at room temperature, idle: an entropy source is most fragile exactly at cold start, at low temperature, and under rapid drawing. Third, missing restart samples: many entropy incidents happen when output is produced before the entropy pool has filled at start-up, which is precisely why restart testing exists. Fourth, treating one evaluation as a lifetime verdict: sources age and change behaviour with firmware updates, so evaluation must be repeated per version and hardware batch, cross-checked against the health tests’ long-term logs. An entropy evaluation never issues a lifetime certificate; it installs a monitoring discipline that has to keep running — the experiment’s parting word to implementers.

Tags: Random Number GenerationEntropy Source EvaluationSP 800-90BExperiment Design