Skip to content

Commit a63aa65

Browse files
committed
fixes for dep update
1 parent fc09552 commit a63aa65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mgd/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ fn get_tunnel_endpoint_ula(db: &rdb::Db) -> Ipv6Addr {
283283
}
284284

285285
// creat the randomized ULA fdxx:xxxx:xxxx:xxxx::1 as a tunnel endpoint
286-
let mut rng = rand::thread_rng();
286+
let mut rng = rand::rng();
287287
let mut r = [0u8; 7];
288-
r.try_fill(&mut rng).unwrap();
288+
r.fill(&mut rng);
289289
let tep_ula = Ipv6Addr::from([
290290
0xfd, r[0], r[1], r[2], r[3], r[4], r[5], r[6], 0, 0, 0, 0, 0, 0, 0, 1,
291291
]);

0 commit comments

Comments
 (0)