Function generate_difficulty

Source
pub fn generate_difficulty(difficulty: u8) -> Difficulty