server: thread_rng is a CSPRNG, closes #508

This commit is contained in:
ice_iix 2021-03-03 19:11:56 -08:00
parent 995cf981c5
commit d7b7216315
1 changed files with 0 additions and 1 deletions

View File

@ -197,7 +197,6 @@ impl Server {
}
let mut shared = [0; 16];
// TODO: is this cryptographically secure enough?
rand::thread_rng().fill(&mut shared);
let shared_e = rsa_public_encrypt_pkcs1::encrypt(&public_key, &shared).unwrap();