liveBook · Manning

True random number generator

As explained in Real-World Cryptography

A true random number generator is a device or system that derives random values from physical nondeterministic phenomena.

A true random number generator derives values from unpredictable physical phenomena rather than predictable software events. Thermal noise is one example. The resulting randomness is valuable in cryptography, where low-entropy strings are predictable and high-entropy strings are harder to predict. section 8.1

A practical TRNG pipeline has several concerns:

  • Gather physical noise from sensors or hardware aids; boot-time interrupts alone may be predictable or externally influenced. section 8.1
  • Clean and combine the noise before cryptographic use, because individual bits may be biased or correlated. section 8.1
  • Expect extraction to be slower than consuming already-generated random values, so randomness generation can become a bottleneck. section 8.1
  • Mix independent entropy sources contributively when possible, so one source cannot force the final result. section 8.4

Thermal noise in a processor

Modern Intel CPUs can extract randomness from thermal noise and expose it through the RDRAND instruction. Operating systems commonly mix such hardware output with other entropy sources rather than relying on one source alone. section 8.4

A smart-card component

A smart card may include a CPU, memory, inputs and outputs, and a hardware random number generator. The TRNG supports the card’s contained hardware applications and security functions. section 13.2.2

Trace how physical noise becomes cleaned randomness suitable for cryptographic applications. section 8.1

How Real-World Cryptography covers it

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 it assumes
Introduces entropy and unpredictability from zero while assuming only basic awareness of cryptographic applications.
What you can do after
Evaluate physical randomness sources, extraction needs, bottlenecks, and risks from relying on a single source.
How it connects
Connects TRNGs with entropy, randomness extractors, operating systems, RDRAND, smart cards, and nonce generation.

Also explained in

Compare how 2 books explain true random number generator →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.