mpeg2v: seed_sweep derives its seeds without overflowing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
justjohn12345 2026-10-06 13:38:19 -04:00
parent a2f6ba8b44
commit fb824c6fb0
1 changed files with 1 additions and 1 deletions

View File

@ -758,7 +758,7 @@ fn seed_sweep() {
];
for seed in 1..=8u64 {
for c in cfgs {
check(Cfg { seed: (seed * 0x9E37_79B9_7F4A_7C15) ^ c.w as u64, ..c });
check(Cfg { seed: seed.wrapping_mul(0x9E37_79B9_7F4A_7C15) ^ c.w as u64, ..c });
}
}
}