update deps + bump version

This commit is contained in:
satvrn 2023-07-19 02:27:39 +00:00
commit 45916848ad
2 changed files with 7 additions and 7 deletions

View file

@ -38,7 +38,7 @@ impl Default for DhKeyPair {
impl DhKeyPair {
pub fn new() -> Self {
let secret = StaticSecret::new(&mut OsRng);
let secret = StaticSecret::random_from_rng(&mut OsRng);
let public = PublicKey::from(&secret);
DhKeyPair {
private_key: secret,