Skip to content

Commit

Permalink
test(crypto): fix test_combined_secret_key that fails if num_receivers=0
Browse files Browse the repository at this point in the history
  • Loading branch information
altkdf committed Jan 17, 2024
1 parent 95be005 commit 7be5fcc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -241,7 +241,7 @@ fn omnipotent_dealer() {
fn test_combined_secret_key() {
let rng = &mut reproducible_rng();
for _trial in 0..3 {
let num_receivers = rng.gen::<u8>() as NodeIndex;
let num_receivers = rng.gen_range::<u8, _>(1..=u8::MAX) as NodeIndex;
let poly_degree = rng.gen::<u8>() as usize;

let polynomial = Polynomial::random(poly_degree, rng);
Expand Down

0 comments on commit 7be5fcc

Please sign in to comment.