True random number generator
A true random number generator produces unpredictable values by sampling nondeterministic physical phenomena rather than relying solely on deterministic algorithms.
Hacking Cryptography
A hardware random number generator, or true random number generator, samples nondeterministic physical phenomena to produce unpredictable random values.
- How it is used
- Seeds CSPRNGs with physically sourced entropy for cryptographic random-byte generation.
- How deep it goes
- Explains physical sources, rate and entropy models, tamper resistance, health tests, and reseeding; defers detailed construction mechanics.
- Examples
- Uses rain, radioactive decay, electrical noise, diode designs, HSMs, and Linux entropy devices as concrete examples.
- What you can do after
- Evaluate/understand it by distinguishing a modeled, health-tested entropy source from an untested or deterministic random generator.
Read how Hacking Cryptography explains true random number generator →
Real-World Cryptography
A true random number generator is a device or system that derives random values from physical nondeterministic phenomena.
- How it is used
- Explains how physical entropy sources support cryptographic randomness when ordinary software events are predictable.
- How deep it goes
- Explains entropy sources, bias, extraction, performance, and contributory mixing, but stops short of implementation details.
- Examples
- Uses thermal noise, Intel RDRAND, boot-time entropy failures, and smart-card hardware as concrete examples.
- What you can do after
- Evaluate physical randomness sources, extraction needs, bottlenecks, and risks from relying on a single source.
Read how Real-World Cryptography explains true random number generator →
Related concepts
- pseudo-random number generatorkind of · A pseudorandom number generator is a deterministic computational process that uses an initial seed or internal state to produce a sequence with random-like statistical properties.
- cryptographically secure random number generatorused by · A cryptographically secure random number generator produces computationally unpredictable values while resisting prediction and recovery of its internal state by feasible adversaries.
- thermal noiseuses · Thermal noise is random electrical fluctuation caused by the thermally driven motion of charge carriers in a physical system.
- ring oscillatorused by · An electronic oscillator formed by connecting an odd number of inverting logic gates in a ring.
- entropy sourceuses · An entropy source is a physical, computational, or operating-system process that supplies unpredictable or uncertain input for generating random data.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

