Skip to content

Commit

Permalink
fix deprecation of StaticSecret::new
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Karl committed Sep 15, 2023
1 parent e8d90ca commit c8a86e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub async fn event_loop(
.unwrap();
StaticSecret::from(secret_key_bytes)
} else {
let private_key = StaticSecret::new(OsRng::default());
let private_key = StaticSecret::random_from_rng(OsRng::default());
tokio::fs::write(
&start_opts.private_key,
BASE64_STANDARD.encode(private_key.to_bytes()),
Expand Down

0 comments on commit c8a86e9

Please sign in to comment.