Skip to content

Commit 9a7df3c

Browse files
committed
h3
1 parent 93314cb commit 9a7df3c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/client_h3.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub(crate) struct ClientStateHttp3 {
5656
impl ClientStateHttp3 {
5757
fn new(send_request: h3::client::SendRequest<h3_quinn::OpenStreams, Bytes>) -> Self {
5858
Self {
59-
rng: SeedableRng::from_os_rng(),
59+
rng: SeedableRng::from_rng(&mut rand::rng()),
6060
send_request,
6161
}
6262
}
@@ -290,7 +290,7 @@ async fn create_and_load_up_single_connection_http3(
290290
client: Arc<Client>,
291291
s: Arc<Semaphore>,
292292
) {
293-
let mut rng: Pcg64Si = SeedableRng::from_os_rng();
293+
let mut rng: Pcg64Si = SeedableRng::from_rng(&mut rand::rng());
294294
loop {
295295
// create a HTTP3 connection
296296
match setup_http3(&client, &mut rng).await {
@@ -469,7 +469,7 @@ pub(crate) fn http3_connection_fast_work_until(
469469
local.spawn_local(Box::pin(async move {
470470
let mut has_err = false;
471471
let mut result_data_err = ResultData::default();
472-
let mut rng: Pcg64Si = SeedableRng::from_os_rng();
472+
let mut rng: Pcg64Si = SeedableRng::from_rng(&mut rand::rng());
473473
loop {
474474
let client = client.clone();
475475
match setup_http3(&client, &mut rng).await {

0 commit comments

Comments
 (0)