Skip to content

Commit

Permalink
Remove dependency on itertools (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Nov 20, 2023
1 parent 50b0df3 commit 715f043
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
14 changes: 2 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ fixed-macro = "1.2.0"
hex = { version = "0.4.3", features = ["serde"] }
hex-literal = "0.4.1"
iai = "0.1"
itertools = "0.11.0"
modinverse = "0.1.0"
num-bigint = "0.4.4"
once_cell = "1.18.0"
Expand Down
5 changes: 1 addition & 4 deletions src/vdaf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,7 @@ where
for<'a> T: ParameterizedDecode<(&'a V, &'a V::AggregationParam)>,
{
// Generate an arbitrary vector of field elements.
let g = F::one() + F::one();
let vec: Vec<F> = itertools::iterate(F::one(), |&v| g * v)
.take(length)
.collect();
let vec: Vec<F> = crate::field::random_vector(length).unwrap();

// Serialize the field element vector into a vector of bytes.
let mut bytes = Vec::with_capacity(vec.len() * F::ENCODED_SIZE);
Expand Down

0 comments on commit 715f043

Please sign in to comment.