Skip to content

Commit 3cf7387

Browse files
committed
Fix RNG call syntax in TCB initialization
1 parent 462307b commit 3cf7387

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/stream/tcb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl Tcb {
7575
#[cfg(debug_assertions)]
7676
let seq = 100;
7777
#[cfg(not(debug_assertions))]
78-
let seq = rand::Rng::random::<u32>(&mut rand::rng());
78+
let seq = rand::RngExt::random::<u32>(&mut rand::rng());
7979
Tcb {
8080
seq: seq.into(),
8181
ack,

0 commit comments

Comments
 (0)