Skip to main content

min_draws

Function min_draws 

Source
pub const fn min_draws<const CARDS: u8, const N: usize>() -> Result<usize, EntropyError>
Expand description

Minimum card draws required to fill an N-byte entropy buffer from a CARDS-deck. Each entry is the smallest k such that log₂(CARDS! / (CARDS-k)!) ≥ 8·N.