Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Entropy

Secure random bytes from the operating system: getentropy on Linux, Android, macOS, iOS and WASI, and BCryptGenRandom on Windows. They are unpredictable, so they suit keys, tokens and identifiers, but each call asks the kernel; a Generator is much faster for everything else.

Source: runtime/random/entropy.pep