Fix flaky message kitchen sink test (#26624)
This commit is contained in:
parent
61fd9288ba
commit
3fc161bea4
|
@ -176,7 +176,9 @@ impl Pubkey {
|
||||||
|
|
||||||
let mut b = [0u8; 32];
|
let mut b = [0u8; 32];
|
||||||
let i = I.fetch_add(1);
|
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)
|
Self::new(&b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue