Expand description
OS CSPRNG bytes for crate::CapId.
getrandom::fill reads the platform generator (ProcessPrng on
Windows, getrandom / /dev/urandom on Linux). A failed read is
EntropyError and keeps the OS error. This module does not substitute
a hash.
Structs§
- Entropy
Error - The operating system refused or failed the entropy read.
Functions§
- fill_
bytes - Fill
bufwith OS CSPRNG bytes. An empty buffer succeeds. Never panics.