update deps + bump version
This commit is contained in:
parent
d5f9760546
commit
45916848ad
2 changed files with 7 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue