Fix device ID construction in cross-version tests

This commit is contained in:
Alex Bakon
2025-06-13 17:24:01 -04:00
committed by GitHub
parent ba87b882ce
commit 3157a9be55
4 changed files with 13 additions and 7 deletions

View File

@@ -88,7 +88,7 @@ pub async fn create_pre_key_bundle<R: Rng + CryptoRng>(
.private_key()
.calculate_signature(&kyber_pre_key_public, &mut csprng)?;
let device_id = DeviceId::new(csprng.random_range(1..=127)).unwrap();
let device_id: DeviceId = csprng.random();
let pre_key_id: u32 = csprng.random();
let signed_pre_key_id: u32 = csprng.random();
let kyber_pre_key_id: u32 = csprng.random();