//! Where randomness comes from: keys, salts, nonces. #![no_std] #![forbid(unsafe_code)] pub trait Entropy { /// Fills `buf` with random bytes from the hardware; false if it could /// not (then nothing in `buf` may be used). fn fill(&mut self, buf: &mut [u8]) -> bool; }