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:
@@ -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