Skip to main content

hand_seeded

Function hand_seeded 

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

hand, telling for each program the seed make made it from, so a caller can make it again. For that, a program whose own name (Driver::generated_name of its seed) is taken is made from another seed, not renamed; None for the rare one that had to be renamed or nudged apart all the same. Seeds are cut to mask (short seeds make short recipe codes); the first program is made from first when given.