Skip to content

Commit

Permalink
test: replace usize with u64 (#203)
Browse files Browse the repository at this point in the history
Small PR that makes sure this test runs on 32 bit and 64 bit machines
  • Loading branch information
SWvheerden authored Sep 11, 2023
2 parents 1e6f603 + 3ec022a commit 74bda6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ristretto/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ mod test {
let mut a: [u8; 64] = [0; 64];
for i in 0..n {
let mut data = b"TARI CRYPTO NUMS BASEPOINT LABEL - ".to_vec(); // Domain label
data.append(&mut i.to_le_bytes().to_vec()); // Append domain separated label counter
data.append(&mut (i as u64).to_le_bytes().to_vec()); // Append domain separated label counter
let hashed_v = Sha512::digest(&data);
a.copy_from_slice(&hashed_v);
let next_val = RistrettoPoint::from_uniform_bytes(&a);
Expand Down

0 comments on commit 74bda6e

Please sign in to comment.