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)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use rand::seq::SliceRandom;
|
||||
use rand::seq::IndexedRandom;
|
||||
|
||||
/// Extended list of playful thinking messages including both goose and general AI actions
|
||||
const THINKING_MESSAGES: &[&str] = &[
|
||||
@@ -215,6 +215,6 @@ const THINKING_MESSAGES: &[&str] = &[
|
||||
/// Returns a random thinking message from the extended list
|
||||
pub fn get_random_thinking_message() -> &'static str {
|
||||
THINKING_MESSAGES
|
||||
.choose(&mut rand::thread_rng())
|
||||
.choose(&mut rand::rng())
|
||||
.unwrap_or(&THINKING_MESSAGES[0])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user