Skip to content

Commit

Permalink
Nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
adria0 committed Jun 18, 2024
1 parent f00eb8b commit 590aa3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions halo2_proofs/tests/shuffle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ use halo2_proofs::{
Blake2bRead, Blake2bWrite, Challenge255, TranscriptReadBuffer, TranscriptWriterBuffer,
},
};
use rand_chacha::ChaCha20Rng;
use rand_core::{RngCore, SeedableRng};
use rand_core::RngCore;
use std::iter;

fn rand_2d_array<F: Field, R: RngCore, const W: usize, const H: usize>(rng: &mut R) -> [[F; H]; W] {
Expand Down Expand Up @@ -327,8 +326,7 @@ fn test_shuffle() {
const H: usize = 32;
const K: u32 = 8;

let mut shuffle_rng = ChaCha20Rng::seed_from_u64(0xdeadbeef);
let circuit = &MyCircuit::<_, W, H>::rand(&mut shuffle_rng);
let circuit = &MyCircuit::<_, W, H>::rand(&mut test_rng());

{
test_mock_prover(K, circuit.clone(), Ok(()));
Expand Down

0 comments on commit 590aa3b

Please sign in to comment.