Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Jan 27, 2025
1 parent 4bdbaa8 commit e8f1128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions batch/tests/batch_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ mod tests {

#[test]
fn test_multiple_proof_random_100_blobs() {
let mut rng = rand::rng();
let mut rng = rand::thread_rng();
let mut kzg = KZG_INSTANCE.clone();

let mut blobs: Vec<Blob> = Vec::new();
let mut commitments: Vec<G1Affine> = Vec::new();
let mut proofs: Vec<G1Affine> = Vec::new();

(0..100).for_each(|_| {
let blob_length = rng.random_range(35..50000);
let blob_length = rng.gen_range(35..50000);
let random_blob: Vec<u8> = (0..blob_length)
.map(|_| rng.random_range(32..=126) as u8)
.map(|_| rng.gen_range(32..=126) as u8)
.collect();

let input = Blob::from_raw_data(&random_blob);
Expand Down

0 comments on commit e8f1128

Please sign in to comment.