What is a random number generator?

A random number generator supplies the random values that keys and nonces are built from. NIST defines it in several documents, and it matters for post-quantum migration because weak randomness undermines any new key.

On this page

What is a random number generator in cryptography?

If a vendor document, tender or audit request names a random number generator or an RBG, it is asking about the component that produces unpredictable values for keys, nonces and other secrets. NIST's glossary defines a random number generator as a process that generates a random sequence of values or an individual random value, drawing on one or more non-deterministic bit sources and a processing function. The same glossary quotes SP 800-57 Part 1 Rev. 5, which also calls it a random bit generator (RBG). The SP 800-90 series is where NIST specifies how RBGs are built and validated.

Engineers, security architects, auditors and procurement reviewers meet the term in several places: in key generation requirements, in questionnaires about how a product seeds its cryptographic keys, in device and HSM datasheets, and in validation records. When a vendor says its module uses an approved RBG, the reviewer should confirm which SP 800-90 mechanism is used, which entropy source feeds it, and whether the module's validation covers that configuration. The sources listed on this page do not say how any particular product implements its generator, so ask the vendor for that detail in writing.

Some related terms are easy to confuse. SP 800-90A specifies deterministic random bit generator mechanisms, which expand a seed into a longer stream of bits. SP 800-90B covers the entropy sources that feed them, and SP 800-90C covers how the two are combined into full RBG constructions. RFC 4086 warns that purely pseudo-random processes give only pseudo-security, and recommends hardware random number generation where possible. Reviewers should ask which parts of the chain are approved and whether the post-quantum migration plan touches the randomness used for new key generation.

Which names and document numbers refer to a random number generator?

This table lists the names, abbreviations and document numbers that practitioners meet for random number generators, with the source that uses each one. Read it to match a term in a vendor document, assessor request or standard to the NIST publication or glossary entry behind it. The main takeaway is that the glossary wordings differ, so confirm which definition your assessor or vendor is using before treating two terms as the same.

Name or numberSourceWhat the source uses it for
Random number generator (full name)CNSSI 4009-2022, quoted in the NIST CSRC GlossaryA process that generates a random sequence of values or an individual random value, using one or more non-deterministic bit sources and a processing function
Random bit generator (RBG)SP 800-57 Part 1 Rev. 5, quoted in the NIST CSRC GlossaryA process used to generate an unpredictable series of numbers, also called a random bit generator (RBG)
Truly random mechanism (wording)SP 800-22 Rev. 1a, quoted in the NIST CSRC GlossaryA mechanism that is claimed to generate truly random data, which is a different wording from the two definitions above
DRBG (deterministic random bit generator)SP 800-90A Rev. 1, titled Recommendation for Random Number Generation Using Deterministic Random Bit GeneratorsMechanisms for generating random bits using deterministic methods, built on hash functions or block ciphers
Entropy sourceSP 800-90BThe source of unpredictable input that random bit generators draw on, with design requirements and tests for validating it
RBG1, RBG2, RBG3 and RBGCSP 800-90C, final on 25 September 2025Four RBG constructions that combine SP 800-90A DRBG mechanisms with SP 800-90B entropy sources
Pseudo-random processRFC 4086A process that the RFC says gives only pseudo-security, because an attacker may reproduce the generating environment

Where do practitioners meet a random number generator?

A random number generator rarely appears on its own in a project. It sits underneath key generation, device provisioning and the evidence teams hand to auditors and validators. The cards below show where a reviewer is most likely to encounter one and what to check at each point.

Key generation in TLS, SSH and IKE libraries

TLS, SSH and IKE libraries draw random values for session keys, ephemeral key pairs and nonces during every handshake. A weak or misconfigured generator here affects every connection the library accepts, so the random source is part of the library's security boundary. When reviewing a library, ask which random bit generator it calls, whether that generator is seeded from an approved entropy source, and whether the library documents which generator is used on each platform. Post-quantum key exchange adds new key generation steps, so the same questions apply to the new code paths.

SP 800-90A Rev. 1

Device firmware and hardware security modules

Firmware on embedded devices and hardware security modules often has less entropy available at boot than a general-purpose server, because there is little user input and few interrupts. Vendors may use a hardware true random number generator, a physical entropy source, or a seeded deterministic generator, and these choices change how much a key can be trusted. When assessing a device or HSM, ask where its entropy comes from, whether that source is tested to a published standard, and how the generator is seeded during first boot and after a reset.

SP 800-90B

Vendor security documents

Vendor security documents, such as architecture overviews and cryptographic inventories, often describe the random number generator in one line that names a library or a hardware block. That line is where a reviewer should start asking questions. Check whether the document names the generator standard it follows, identifies the entropy source, and states the version it applies to. A vague statement that randomness is secure is not enough to answer an audit question, so request the specific generator and its validation status.

CMVP validation submissions under D.T

The NIST Cryptographic Module Validation Program accepts submissions for random bit generators under Implementation Guidance D.T once SP 800-90C is published. A module that includes a random bit generator can therefore be validated for that component, and the submission describes which construction and entropy source it uses. Reviewers reading a validation certificate should confirm that the certificate covers the generator in the exact configuration deployed, not only the module as a whole. The certificate does not certify the rest of the product.

CMVP entropy validations

Audit requests about key generation

Auditors and assessors often ask how keys are generated, which generator produced them, and whether the process can be shown in evidence. A good answer names the generator, the entropy source, the seeding process and the configuration used for each key type. Teams should prepare this before the audit, because reconstructing it afterward is slow and error-prone. Ask the vendor or internal platform team for a written description of the generator and a list of the systems that rely on it, and keep that list current as keys and devices change.

How does a random number generator feed key generation?

A random number generator supplies the unpredictable bits that become private keys, session keys and nonces. When a system generates a key pair or starts a TLS handshake, it draws bytes from the generator, and the strength of every key derived from them depends on how unpredictable those bytes are. For a post-quantum upgrade, this matters because a new ML-KEM or ML-DSA key is only as hard to guess as the randomness that produced it, and a weak generator undermines the new algorithm regardless of its design. Review the generator as part of the key generation path, not as a separate library detail.

Most systems do not read raw physical noise on every request. NIST's SP 800-90A Rev. 1 specifies deterministic random bit generators (DRBGs), which expand a seed into a long stream of bits using a hash function or block cipher. The output looks random and is computed from a state, so anyone who knows that state can predict the stream. The security therefore rests on the seed, which must come from a non-deterministic entropy source. SP 800-90B covers the design and testing of those entropy sources, and SP 800-90C describes how they are combined with DRBGs into complete random bit generator constructions.

RFC 4086 makes the same distinction in plainer terms. It notes that purely pseudo-random processes give only "pseudo-security", since an attacker who can reproduce the generating environment may search a small set of possibilities. It recommends hardware random number generation where available. When you review a system, confirm where the seed comes from at boot or first use, whether entropy is seeded before keys are generated, and which SP 800-90 construction the vendor's cryptographic module implements. Check that module's validation record in the CMVP listings rather than relying on the vendor's description alone.

How do entropy sources, DRBGs and RBG constructions connect?

The diagram starts at an entropy source, which SP 800-90B covers for design and validation of non-deterministic bit sources. Its output feeds a deterministic random bit generator (DRBG) defined in SP 800-90A Rev. 1, which expands and processes the seed into output bits. SP 800-90C then describes how the entropy source and DRBG are combined into RBG1, RBG2, RBG3 and RBGC constructions. When reviewing a design, check which construction is claimed and whether each component is documented against the matching SP 800-90 part.

How the SP 800-90 series connects entropy sources, DRBGs and RBG constructions.

Which NIST documents define random bit generators, and when were they finalized?

Several NIST documents define how random bit generators (RBGs) are built and evaluated, and they were finalized at different times. SP 800-90A Rev. 1, Recommendation for Random Number Generation Using Deterministic Random Bit Generators, is final and dates from June 2015. It specifies deterministic random bit generator (DRBG) mechanisms built on hash functions or block ciphers, and it supersedes the 23 January 2012 version. SP 800-90B is final as of January 2018 and covers the design principles, requirements and validation tests for the entropy sources that feed an RBG. Together, these two documents describe the deterministic generator and the entropy input it depends on.

SP 800-90C, Recommendation for Random Bit Generator (RBG) Constructions, was published as a final document on 25 September 2025. It supersedes the 4th public draft of 3 July 2024 and specifies four RBG classes, named RBG1, RBG2, RBG3 and RBGC, that combine the SP 800-90A DRBG mechanisms with SP 800-90B entropy sources. NIST IR 8446, which is final and dated 29 January 2026, compares the SP 800-90 series with the German BSI's AIS 20/31 on terminology, assumptions and requirements. Teams planning a review should read SP 800-90C alongside SP 800-90A and SP 800-90B, and should confirm the status of any draft they find cited in a vendor document.

For validation, NIST's CMVP page states that with SP 800-90C published, the CMVP also accepts submissions for random bit generators under Implementation Guidance D.T. Ask a vendor which RBG construction and entropy source its module uses, and confirm that claim against the module's own CMVP entry; this page does not state that any product is validated. RFC 4086 also recommends truly random hardware where possible, so the source of entropy matters as much as the generator's design. Confirm with each vendor which document their RBG follows.

What should a post-quantum migration check for random number generation?

This sequence inventories every place keys and nonces are generated, then verifies the generator design, entropy source, standards basis and validation status of each component. The output is a per-component record that shows whether randomness supports the keys being migrated.

  1. List every key and nonce generation point

    Start by listing each place in your environment where keys, nonces, initialization vectors or session values are generated. Include libraries, operating system calls, hardware modules, cloud key services and embedded firmware, and record the owning team for each. Work from code reviews, configuration files, vendor documentation and asset records rather than memory. The step is complete when every generation point has a row in the inventory with its component name, version and owner.

  2. Identify the RBG or DRBG mechanism in use

    For each generation point, confirm which random bit generator design it uses. Look for whether the component is a deterministic random bit generator (DRBG) built from the mechanisms in SP 800-90A Rev. 1, a constructed random bit generator aligned to SP 800-90C, or a proprietary design. Ask the vendor or project maintainer to name the mechanism and the document it follows. The output is a column in the inventory that names the mechanism for each component, or states that none is documented.

  3. Confirm the entropy source for each generator

    Record the entropy source behind each generator, since a DRBG is only as good as the seed it receives. Check whether the source is an operating system pool, a hardware random number generator, or a platform-specific input, and whether the vendor describes how that source was assessed against SP 800-90B. Note any component that cannot name its entropy source. The step is complete when every row has an entropy source entry or an explicit gap marked for follow-up.

  4. Ask vendors which SP 800-90 document applies

    Send each vendor a written question asking which SP 800-90 document their random number generator follows, including the revision or version number. Ask whether the design is described in SP 800-90A Rev. 1, SP 800-90C, or another document, and whether they can provide that description in writing. Store the written answers with the inventory. The step is complete when each vendor has either named a document in writing or stated that they do not follow one.

  5. Check CMVP validation status of each module

    Look up whether each cryptographic module that generates randomness has a CMVP validation certificate, and confirm which guidance the validation was performed under. NIST's Cryptographic Module Validation Program page states that random bit generators can be submitted under Implementation Guidance D.T once SP 800-90C is published. Record the certificate number, module name and version, and the guidance referenced. The output is a validation status column that shows validated, not validated or unknown for each module.

  6. Confirm hardware random input where recommended

    Check whether each system uses hardware random number generation where it is available, as RFC 4086 recommends. Confirm whether the hardware source is enabled, exposed to the operating system or application, and used as an input to the generator. Note systems that rely only on pseudo-random processes, since RFC 4086 describes that situation as offering only pseudo-security. The step is complete when each system has a recorded hardware input status with a justification for any system that does not use hardware randomness.

  7. Record findings and flag gaps for migration

    Consolidate the results into one record per generation point that shows the mechanism, entropy source, standards reference, validation status and hardware input status. Flag every row with a missing or unverified field and assign an owner to resolve it before the post-quantum key migration reaches that component. Review the record with the security and compliance leads so the gaps are tracked to closure. The output is a signed-off inventory that shows which generators are ready for migration and which need remediation first.

Which terms get mixed up with a random number generator in vendor documents?

Vendor documents often use random number generator, RNG, RBG, DRBG and TRNG loosely, and some wording from different standards does not match. The cards below separate the terms that readers most often confuse, so you can check which component a vendor is actually describing.

RNG versus DRBG

An RNG is the general term for a process that produces random values, while a DRBG is one deterministic mechanism that sits inside a random bit generator (RBG). A DRBG expands a seed into a long stream of bits and does not create new unpredictability by itself, so its output is only as strong as the seed it receives. When a vendor says it uses a random number generator, ask whether the component is a DRBG, what seeds it, and where that seed comes from. Check SP 800-90A Rev. 1 for the DRBG mechanisms it specifies.

SP 800-90A Rev. 1

True versus pseudo-random generators

A true random number generator draws on a physical source of randomness, while a pseudo-random generator computes its output from an internal state. RFC 4086 warns that purely pseudo-random processes give only "pseudo-security", because an attacker who can reproduce the environment may search a small set of possibilities. When a vendor describes its generator, ask whether a hardware source feeds it and whether that source is reflected in the entropy design. Check RFC 4086 for the guidance on hardware random number generation.

RFC 4086

CNSSI and SP 800-57 glossary wording

The NIST glossary quotes three different definitions of a random number generator, from CNSSI 4009-2022, SP 800-57 Part 1 Rev. 5 and SP 800-22 Rev. 1a. The CNSSI definition refers to non-deterministic bit sources and a processing function, the SP 800-57 definition calls the same idea a random bit generator, and the SP 800-22 definition speaks of data claimed to be truly random. A vendor may quote any one of these, so confirm which document its wording comes from before comparing claims. Check the NIST glossary entry to see the quoted text in context.

NIST glossary entry

SP 800-90 terms across documents

The SP 800-90 series uses its own vocabulary: SP 800-90A covers DRBG mechanisms, SP 800-90B covers the entropy sources they depend on, and SP 800-90C covers RBG constructions that combine the two. NIST IR 8446 compares these terms with the German BSI's AIS 20/31, which can name the same concept differently. Read a vendor's claim against the specific document it cites, and check that the component, the entropy source and the construction are all covered. Check SP 800-90C for the constructions it defines.

SP 800-90C

Claiming readiness from randomness alone

Good randomness supports key generation and nonces, but it does not by itself make a product ready for post-quantum cryptography. Post-quantum readiness depends on the algorithms used, such as FIPS 203, FIPS 204 and FIPS 205, and on how keys are carried through protocols and certificates. A vendor that points only to its random number generator has not answered whether its algorithms are supported. Ask for the algorithms and their standards by name, and check the NIST FIPS pages for their scope.

FIPS 203

Common questions about random number generators

What does RNG stand for in cryptography?

RNG stands for random number generator. In the NIST glossary, a random number generator is described as a process that produces a random sequence of values or a single random value, using one or more non-deterministic bit sources together with a processing function. The definition from CNSSI 4009-2022 is quoted there, and it is the sense most security reviewers mean when they use the term. The practical consequence for a reviewer is that a product claiming to have an RNG should be able to say where its unpredictability comes from. A generator that only stretches a single seed value is a different thing from one that draws on a physical or non-deterministic source, and the two should not be treated as equivalent in a security review. When a vendor document uses the abbreviation without defining it, ask which kind of generator is meant and which sources feed it.

Are RBG and RNG the same thing?

The sources treat them as close but not identical. NIST SP 800-57 Part 1 Rev. 5, as quoted in the NIST glossary, defines a random number generator as a process used to generate an unpredictable series of numbers and says it is also called a random bit generator (RBG). So in that document the two names refer to the same concept. NIST's SP 800-90 series uses RBG as the umbrella term for the full construction, including the entropy source, while the deterministic part is named separately as a DRBG. In practice, when a standard or vendor says RBG, read it as the complete random bit generator and check whether the document means the whole construction or only the deterministic component. Confirm the exact usage in the document you are reading rather than assuming the two abbreviations are interchangeable in every context.

Is NIST SP 800-90C final?

Yes. NIST's page for SP 800-90C, Recommendation for Random Bit Generator (RBG) Constructions, says the final document was published on 25 September 2025 and that it obsoleted the 4th public draft of 3 July 2024. The final version specifies four RBG classes, named RBG1, RBG2, RBG3 and RBGC, and describes constructions that combine the SP 800-90A deterministic mechanisms with SP 800-90B entropy sources. NIST's CMVP page also states that with SP 800-90C published, the program accepts submissions for random bit generators under Implementation Guidance D.T. If a procurement document still cites the 2024 draft, ask the vendor which version their module was built and tested against, since the final text supersedes it. Check the NIST document page directly for the current status before writing it into a requirement.

Does a post-quantum algorithm need a special random number generator?

The sources listed for this page do not say that a post-quantum algorithm requires a special random number generator. The NIST post-quantum standards, FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), were all published as final on 13 August 2024, and the sources listed here do not state a separate randomness requirement for them. Key generation and signing still draw on random values, so the general RNG guidance in SP 800-90A, SP 800-90B and SP 800-90C applies to the system that runs them. Read the requirements sections of each FIPS for the exact randomness expectations, and check the module's validation records for how its generator is documented. Do not assume a post-quantum algorithm carries its own generator, and do not assume it does not need one.

What should I ask a vendor about its random number generator?

Start by asking which entropy source the product uses and whether it is a true random number generator, a deterministic generator seeded from another source, or a mix. Ask which deterministic mechanism is used, whether it follows SP 800-90A Rev. 1, and which entropy source documentation it relies on under SP 800-90B. Ask whether the generator is implemented in hardware, in software, or both, and how it is seeded at startup and after restart. Ask for the validation record of the module that performs the randomness, including the module name, version and whether the validation references SP 800-90C. Ask how the vendor tests the generator's output and what happens when the entropy source fails. These questions produce answers you can check against documents rather than general assurances. Pair them with a request for the vendor's documentation of its randomness design.

Does my product use a random number generator, and how would I check?

Almost every product that generates keys, nonces or session values uses one, so the useful question is which one and how it is validated. Start with an inventory: list the components that create keys, certificates, tokens and nonces, including operating system libraries, cryptographic libraries, hardware security modules and embedded firmware. For each one, record the generator it calls and the entropy source it draws from. Check the vendor's module validation records and its documentation for the mechanisms named in SP 800-90A and the entropy source named in SP 800-90B. Where a component is open source, read the code path that provides randomness and note the version. Treat any component you cannot trace as a gap to resolve with the vendor before you plan a migration around it.

How DeployOpen works on this

DeployOpen approaches random number generation as part of a post-quantum migration by first mapping where random values feed keys and nonces in your systems. The work is scoped in writing, built and tested in your own infrastructure, and handed over with documentation your security and compliance teams can review.

How we scope

  • Identify which systems in your environment generate random values for keys, nonces and key pairs
  • Record which random bit generator and entropy source each system uses, as far as the system exposes this
  • Agree the scope, deliverables and timeline in writing before any work begins, as engagements are fixed-scope

How we build

  • Review how each generator is configured, including whether hardware random number generation is available and used
  • Check that deterministic generators are seeded from an entropy source and not from predictable inputs
  • Make configuration changes inside your own cloud accounts, data centers or air-gapped networks

How we hand over

  • Document each random number source, its configuration and the owner responsible for it
  • Provide evidence of the settings and tests performed, so your reviewers can check them directly
  • Confirm with your vendors which module versions and validation status apply to the versions you run

How we support

  • Offer ongoing support, upgrades and continuous testing of random number generation as a retainer
  • Retest the generator configuration after platform upgrades or changes to the entropy source
  • Keep the inventory current as systems are added, replaced or moved to new hardware

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.