Join our Newsletter — 33% off our NHI Course
Home› Glossary› Foundations & NHI Taxonomy› Park-Miller LCG
Foundations & NHI Taxonomy

Park-Miller LCG

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

Park-Miller LCG is a linear congruential pseudo-random number generator used to produce a sequence of numbers from a seed. It updates state by a fixed modular multiplication rule, so the output is deterministic and predictable if the algorithm and seed are known.

How Park-Miller LCGs work

A Park-Miller linear congruential generator is stateful, deterministic, and simple by design. Each new value is derived from the previous state through a fixed modular multiplication, which makes the entire sequence reproducible from a seed. That simplicity is useful for simulation, testing, and teaching, but it also means the generator does not create unpredictability on its own.

The key property to understand is that the output is only as strong as the seed and the algorithm. If both are known, the sequence can be recreated exactly. For that reason, a Park-Miller LCG should be treated as a predictable pseudo-random sequence generator, not as a source of security-grade randomness.

Why deterministic output matters

Determinism is the defining feature of the Park-Miller LCG family. Given the same seed, it produces the same sequence every time, which is helpful when you need repeatable results across runs, systems, or test environments.

That same property becomes a limitation in security-sensitive settings. Predictable sequences can be inferred, replayed, or matched against observed outputs when the seed is weak, reused, or exposed. In other words, the mechanism is mathematically consistent, but it does not provide meaningful resistance against prediction.

Typical uses and practical limits

Park-Miller LCGs have long been used where speed, portability, and reproducibility matter more than statistical quality. They are often acceptable for basic sampling, legacy software, or controlled experiments where repeatability is the goal.

They are a poor fit for token generation, secrets, session identifiers, keys, or any workflow that depends on unpredictability. In those cases, a modern cryptographically secure generator is required because the business need is not just variation, but resistance to prediction and reconstruction.

How to think about seed management

The seed is the control point for the entire sequence. If the seed is chosen poorly, reused across contexts, or derived from an observable value, the resulting sequence can become guessable even if the generator itself is implemented correctly.

For practitioners, the main question is not whether the generator is functioning as specified, but whether the predictability of that specification is acceptable for the intended use. A secure design should separate reproducible pseudo-randomness for non-sensitive tasks from cryptographic randomness for anything that depends on secrecy or trust.

Risk and Threat Considerations

Predictable pseudo-random output creates exposure when a Park-Miller LCG is used in places that depend on entropy. An attacker who learns the algorithm and seed can reconstruct future values, and weak seed handling can make that feasible even without direct access to the generator.

Failure mechanism: The generator is deterministic, so weak, reused, or exposed seeds let an adversary reproduce the same sequence and anticipate values that were assumed to be random.

Impact: Prediction can undermine session tokens, test data isolation, challenge values, or any workflow that mistakenly treats the sequence as a secret or as a source of freshness.

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, CIS Controls v8 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementCovers secure handling of generated values used as authenticators or secrets.
SC-13 — Cryptographic ProtectionAddresses using approved cryptography where unpredictability and protection are required.
SA-15 — Development Process, Standards, and ToolsSupports choosing appropriate approved libraries and secure implementations in software development.
Recommendation — Use IA-5 to manage and rotate secrets and authenticators instead of relying on predictable pseudo-random values. Apply SC-13 when random values support cryptographic or security-sensitive functions. Use SA-15 to require an approved secure randomness source in code and build standards.
CIS Controls v8CIS-5 — Account ManagementUseful where predictable generated values could affect accounts, tokens, or lifecycle controls.
Recommendation — Review generators used in account and token workflows so predictability does not weaken access control.
OWASP ASVSV11 — CryptographyCovers the need for strong randomness in security-sensitive application functions.
Recommendation — Validate that security-critical randomness comes from a cryptographically secure source.

Practitioner Guidance

Why practitioners should care: The main decision is whether reproducibility or unpredictability is the real requirement. Park-Miller LCGs are fine when consistency is the goal, but they should not be used where an observer gaining knowledge of one output could use it to infer the next.

What to watch for: Review any use of an LCG in code that also handles authentication, access tokens, salts, identifiers, or security-sensitive sampling. If the same generator is serving both testing and production needs, the security boundary is usually too thin.

Practitioner takeaway: Use Park-Miller-style generators only where deterministic repeatability is a feature, and reserve cryptographically secure randomness for anything that must remain unpredictable.

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 November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org