Join our Newsletter — 33% off our NHI Course
Home› Glossary› Foundations & NHI Taxonomy› True Random Number
Foundations & NHI Taxonomy

True Random Number

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: Foundations & NHI Taxonomy

A true random number is derived from a physical process rather than an algorithm. Common sources include environmental or device measurements, which are sampled and converted into numeric form. In security work, the goal is to use naturally unpredictable inputs while reducing bias introduced during measurement or processing.

What Makes True Randomness Different

True random numbers come from a physical source, so the output is not just unpredictable in theory, it depends on the quality of the underlying measurement process. That makes the term different from algorithmic randomness: the security value comes from the entropy source, not the generator logic alone.

In practice, the main challenge is that a physical process still needs to be sampled, digitised, filtered, and sometimes debiased. If those steps are weak, the resulting numbers can look random while still containing patterns that reduce security margin.

Why Randomness Matters in Security

Random numbers underpin nonces, session secrets, challenge values, salts, key material, and many protocol decisions that assume an attacker cannot predict the next value. If the source is weak, the failure is often silent, because systems continue to function even when the generated values are no longer suitably unpredictable.

That is why security teams care about entropy quality, not just the presence of a random-number API. A system can have a “random” output stream and still be exposed if the collection method, startup conditions, hardware source, or post-processing step reduces effective entropy.

For a broader primer on entropy sources and secure random generation, see the Random Number Generation and Entropy in Security Guide.

Physical Entropy Sources and Bias

Common true-random inputs include electrical noise, oscillator jitter, timing variation, thermal effects, and other device-level measurements. These sources are useful because they are difficult to predict precisely, but they are also messy: sampling resolution, environmental stability, and hardware design all affect whether the raw signal is usable as entropy.

Bias is the key concern. A raw physical signal may lean toward certain bit patterns, repeat under similar conditions, or be influenced by temperature, timing, boot state, or device wear. A secure design therefore has to distinguish between genuinely unpredictable variation and measurement artefacts that merely appear random.

The cryptographic treatment of those samples matters as much as the source itself. Secure designs typically rely on extraction or conditioning to turn noisy measurements into usable random output. NHIMG’s Cryptography Basics Guide is a useful companion when you want to place random generation in the wider context of cryptographic primitives.

True Random Number Use Cases and Security Boundaries

True random numbers are most valuable when the security property depends on unpredictability: key generation, token issuance, IV or nonce selection, and other values that must not be guessable from previous outputs. In those cases, the purpose of true randomness is to seed or strengthen security-critical decisions, not to replace every cryptographic function.

It is also important to separate the entropy source from the cryptographic construction that consumes it. A strong physical source does not excuse weak protocol design, while a strong generator cannot compensate for a predictable or reused value in the surrounding system. For that reason, true randomness should be evaluated as part of the full generation pipeline, from sampling to final use.

When organisations need to compare RNG design choices with common failure modes such as weak entropy at boot, debiasing errors, or unsafe use of random values in protocols, the Cryptographic Protocol Failures and Misuse Guide provides relevant practitioner context.

How to Judge Whether Random Numbers Are Actually Safe to Use

The right question is not whether a source is “true” in a philosophical sense, but whether the overall process produces values that are sufficiently unpredictable for the security purpose. That means checking where entropy comes from, how it is mixed or conditioned, and whether the system can fail into a low-entropy state during startup, virtualisation, or hardware degradation.

Security teams should also treat the interface as part of the control surface. If application code, libraries, or platform defaults silently fall back to weaker sources, the organisation may believe it is using strong randomness when it is not. The safer pattern is to prefer well-reviewed operating-system or cryptographic APIs, and to validate that the deployed environment actually delivers the entropy those APIs assume.

For implementation-oriented guidance on CSPRNGs, boot entropy, and known failure patterns, the Random Number Generation and Entropy in Security Guide is the most direct reference.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementRandom values support secure authenticators, tokens, and secret lifecycle.
SC-13 — Cryptographic ProtectionTrue randomness materially affects the strength of cryptographic operations and keying material.
SI-7 — Software, Firmware, and Information IntegrityWeak randomness can silently undermine integrity-related security assumptions in deployed systems.
Recommendation — Use IA-5 to manage generation, rotation, and protection of random secrets and tokens. Apply SC-13 to ensure cryptographic mechanisms rely on strong, unpredictable randomness. Use SI-7 to validate that deployed components do not degrade randomness or security-critical generation.
CIS Controls v8CIS-3 — Data ProtectionRandomness quality directly affects the protection of secrets, tokens, and encrypted data.
CIS-16 — Application Software SecurityApplications often consume random numbers through libraries and platform APIs.
Recommendation — Use CIS-3 to protect secret material that depends on strong random generation. Use CIS-16 to verify that applications consume approved random sources and avoid weak fallbacks.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org