Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: accumulation test error #552

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/core/air/accumulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,14 @@ mod tests {
// Generate a vector of random sizes with a constant seed.
let rng = &mut StdRng::seed_from_u64(0);
const MAX_LOG_SIZE: u32 = 10;
const MASK: u32 = P;
let log_sizes = (0..100)
.map(|_| rng.gen_range(4..MAX_LOG_SIZE))
.collect::<Vec<_>>();

// Generate random evaluations.
let evaluations = log_sizes
.iter()
.map(|_| M31::from_u32_unchecked(rng.gen::<u32>() & MASK))
.map(|_| M31::from_u32_unchecked(rng.gen::<u32>() % P))
.collect::<Vec<_>>();
let alpha = qm31!(2, 3, 4, 5);

Expand Down Expand Up @@ -226,7 +225,6 @@ mod tests {
let rng = &mut StdRng::seed_from_u64(0);
const LOG_SIZE_MIN: u32 = 4;
const LOG_SIZE_BOUND: u32 = 10;
const MASK: u32 = P;
let log_sizes = (0..100)
.map(|_| rng.gen_range(LOG_SIZE_MIN..LOG_SIZE_BOUND))
.collect::<Vec<_>>();
Expand All @@ -236,7 +234,7 @@ mod tests {
.iter()
.map(|log_size| {
(0..(1 << *log_size))
.map(|_| M31::from_u32_unchecked(rng.gen::<u32>() & MASK))
.map(|_| M31::from_u32_unchecked(rng.gen::<u32>() % P))
.collect::<Vec<_>>()
})
.collect::<Vec<_>>();
Expand Down