upgrade rand,rand_distr deps

This commit is contained in:
2026-01-16 10:33:36 +00:00
parent fb1fb6b4e9
commit 74878e6928
22 changed files with 111 additions and 111 deletions

View File

@@ -26,7 +26,7 @@ let param = Param {
t: 128, // plaintext modulus
};
let mut rng = rand::thread_rng();
let mut rng = rand::rng();
let msg_dist = Uniform::new(0_u64, param.t);
let (sk, pk) = TLWE::new_key(&mut rng, &param)?;