mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
Fix potential generation of invalid SignData in shim
This commit is contained in:
parent
29633ada1b
commit
f0694172ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue