Skip to content

Commit c8c12df

Browse files
committed
Update to use renamed symbols from rand 0.9.0
1 parent 7c71812 commit c8c12df

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

gitlab-runner/src/lib.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use hmac::Mac;
1313
use job::{Job, JobLog};
1414
pub mod uploader;
1515
pub use logging::GitlabLayer;
16-
use rand::distributions::Alphanumeric;
17-
use rand::distributions::DistString;
16+
use rand::distr::Alphanumeric;
17+
use rand::distr::SampleString;
1818
use runlist::JobRunList;
1919
use tokio::fs::File;
2020
use tokio::io::AsyncReadExt;
@@ -351,11 +351,7 @@ impl RunnerBuilder {
351351
system_id
352352
} else {
353353
let mut system_id = String::from("r_");
354-
Alphanumeric.append_string(
355-
&mut rand::thread_rng(),
356-
&mut system_id,
357-
Self::DEFAULT_ID_LEN,
358-
);
354+
Alphanumeric.append_string(&mut rand::rng(), &mut system_id, Self::DEFAULT_ID_LEN);
359355
system_id
360356
}
361357
}

0 commit comments

Comments
 (0)