File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ pub(crate) struct ClientStateHttp3 {
5656impl 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 {
You can’t perform that action at this time.
0 commit comments