chore(deps): bump rand from 0.8.6 to 0.10.1 (#9504)
Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Douwe M Osinga <douwe@sidewalklabs.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Douwe M Osinga <douwe@sidewalklabs.com>
This commit is contained in:
@@ -43,11 +43,11 @@ use tracing::warn;
|
||||
const GOOSE_SERVER_SECRET_KEY_ENV: &str = "GOOSE_SERVER__SECRET_KEY";
|
||||
|
||||
fn generate_serve_secret_key() -> String {
|
||||
use rand::distributions::{Alphanumeric, DistString};
|
||||
use rand::distr::{Alphanumeric, SampleString};
|
||||
|
||||
format!(
|
||||
"goose-acp-{}",
|
||||
Alphanumeric.sample_string(&mut rand::thread_rng(), 32)
|
||||
Alphanumeric.sample_string(&mut rand::rng(), 32)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user