Skip to main content

Search...

Popular searches

Random Number Generator

A Random Number Generator (RNG) produces unpredictable numbers essential for cryptographic security in blockchain, such as generating private keys and nonces.

Security
Updated: Mar 19, 2026
Also known as: RNG TRNG entropy source

What Is a Random Number Generator?

A Random Number Generator (RNG) produces sequences of numbers that appear unpredictable and lack discernible patterns. Computers and cryptographic systems use RNGs to create random values for tasks like generating encryption keys. In blockchain, RNGs ensure security by providing the unpredictability that algorithms require.

RNGs work in two main types: True Random Number Generators (TRNGs) and Pseudo-Random Number Generators (PRNGs). TRNGs draw from physical entropy sources, such as thermal noise in hardware or atmospheric radio static. PRNGs use mathematical algorithms seeded with an initial entropy value to produce long sequences of seemingly random numbers. For example, a hardware wallet might use a TRNG chip to generate a seed for private keys.

RNGs matter in cryptocurrency because weak randomness enables attacks. Blockchain applications rely on RNGs for private key generation, proof-of-work nonces, and digital signatures. Predictable RNGs have led to real exploits, like the 2013 Android Java RNG flaw that compromised Bitcoin wallets. Strong RNGs protect against such risks by ensuring outputs resist reverse-engineering.

Key characteristics include high entropy (measure of unpredictability) and uniformity (even distribution). Blockchain standards recommend TRNGs or cryptographically secure PRNGs, like those in NIST SP 800-90A. Developers test RNGs with statistical suites like Dieharder to verify quality.

SecurityEntropy

Entropy is the randomness used to generate secure cryptographic keys or seeds in blockchain and cryptocurrency systems.

Read full definition
HardwareTRNG

A TRNG (True Random Number Generator) generates cryptographically secure random numbers using physical processes, crucial for secure key generation in blockchain and cryptocurrency.

Read full definition
GeneralCryptocurrency

Cryptocurrency is a digital or virtual currency secured by cryptography, operating on decentralized blockchain networks to enable secure, peer-to-peer transactions.

Read full definition
BlockchainBitcoin

Bitcoin (BTC) is the first decentralized cryptocurrency, launched in 2009. It uses blockchain technology for secure, peer-to-peer digital transactions without intermediaries.

Read full definition

Real-World Examples

Example 1: Hardware wallets use TRNGs to generate seed phrases. During setup, a Ledger device collects entropy from a dedicated chip. This creates a unique 24-word mnemonic for your private keys.

Example 2: Bitcoin miners rely on RNGs for proof-of-work. Miners generate random nonces and hash block headers. They repeat this until the hash meets the difficulty target.

Example 3: Wallets produce ECDSA signatures with RNGs. Software like Electrum seeds a PRNG with system entropy. It then derives the nonce r to sign transactions securely.

Example 4: Smart contracts need RNGs for games. Chainlink VRF provides verifiable randomness. It feeds unpredictable numbers into blockchain lotteries without trusting a central party.

HardwareLedger

Ledger is a brand of hardware wallets that securely store cryptocurrency private keys offline, such as the Ledger Nano series.

Read full definition
SecurityEntropy

Entropy is the randomness used to generate secure cryptographic keys or seeds in blockchain and cryptocurrency systems.

Read full definition
BlockchainBitcoin

Bitcoin (BTC) is the first decentralized cryptocurrency, launched in 2009. It uses blockchain technology for secure, peer-to-peer digital transactions without intermediaries.

Read full definition
BlockchainDigital Signature

A digital signature is a cryptographic method that uses a private key to sign blockchain transactions, verifiable with the public key to prove authenticity and prevent tampering.

Read full definition
WalletElectrum

Electrum is a lightweight Bitcoin wallet that allows users to store, send, and receive Bitcoin securely. It is known for its speed and low resource usage.

Read full definition
TransactionNonce

A nonce is a sequential number in a blockchain transaction that ensures transactions from the same account process in order and prevents replay attacks.

Read full definition
DefiOracle

An oracle provides external real-world data, such as price feeds, to smart contracts on a blockchain, bridging on-chain and off-chain worlds.

Read full definition

Ready to Choose a Secure Wallet?

Use our tools to find the right hardware wallet for your needs.