Fix flaky message kitchen sink test (#26624)

This commit is contained in:
Justin Starry 2022-07-14 18:39:57 +01:00 committed by GitHub
parent 61fd9288ba
commit 3fc161bea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -176,7 +176,9 @@ impl Pubkey {
let mut b = [0u8; 32];
let i = I.fetch_add(1);
b[0..8].copy_from_slice(&i.to_le_bytes());
// use big endian representation to ensure that recent unique pubkeys
// are always greater than less recent unique pubkeys
b[0..8].copy_from_slice(&i.to_be_bytes());
Self::new(&b)
}