Skip to main content

hand

Function hand 

Source
pub fn hand(
    d: &dyn Driver,
    character: usize,
    seed: u64,
    n: usize,
    make: impl FnMut(u64) -> Result<Vec<u8>, DriverError>,
) -> Result<Vec<Vec<u8>>, DriverError>
Expand description

Deal n programs that differ in at least one field and carry different names. make is called with a fresh seed derived from seed until each program differs from those before it; a maker that keeps repeating itself is nudged apart with Driver::vary. Names come from Driver::generated_name for character. Deterministic.