diff --git a/src/math.rs b/src/math.rs index ee69252..6ae678d 100644 --- a/src/math.rs +++ b/src/math.rs @@ -50,7 +50,7 @@ pub fn random_polynomial(s: GF256, k: u8, rng: &mut R) -> Vec>) -> impl Iterator { - (1..=u8::max_value()).map(GF256).map(move |x| Share { + (1..=u8::MAX).map(GF256).map(move |x| Share { x: x.clone(), y: polys .iter()