From f665ead732697d82f2251bd7a76ad28ebec497bf Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sun, 23 Feb 2025 09:31:23 -0600 Subject: [PATCH] Fix deprecation warnings. --- src/core.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.rs b/src/core.rs index 8fd3bad..4b17b63 100644 --- a/src/core.rs +++ b/src/core.rs @@ -18,7 +18,7 @@ use bevy::{ prelude::*, }; use once_cell::sync::Lazy; -use rand::{prelude::*, thread_rng}; +use rand::{prelude::*, rng}; use serde::{Deserialize, Serialize}; #[derive(Component, Clone, Debug, Default, Reflect)] @@ -562,7 +562,7 @@ where type Item = T; fn next(&mut self) -> Option { - let mut rng = thread_rng(); + let mut rng = rng(); self.0.shuffle(&mut rng); self.0.first().cloned() }