Fix potential generation of invalid SignData in shim

This commit is contained in:
Luke Parker 2024-02-09 02:52:08 -05:00
parent 29633ada1b
commit f0694172ef
No known key found for this signature in database

View file

@ -63,7 +63,7 @@ fn random_sign_data<R: RngCore, Id: Clone + PartialEq + Eq + Debug + Encode + De
data: { data: {
let mut res = vec![]; let mut res = vec![];
for _ in 0 .. (rng.next_u64() % 256) { for _ in 0 ..= (rng.next_u64() % 255) {
res.push(random_vec(&mut OsRng, 512)); res.push(random_vec(&mut OsRng, 512));
} }
res res