From a507127721cc31e3713a69127a6e5ed77e604896 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 15:23:45 +0000 Subject: [PATCH] Suppress insecure randomness warnings in MathExt.cs Added pragma directives to suppress CA5394 and S2245 warnings in MathExt.cs. The use of Random.Shared is intentional for fast, non-cryptographic RNG in game utilities. Co-authored-by: johnstrand <11484777+johnstrand@users.noreply.github.com> --- src/GameUtils/Math/MathExt.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GameUtils/Math/MathExt.cs b/src/GameUtils/Math/MathExt.cs index 310c1e3..2721518 100644 --- a/src/GameUtils/Math/MathExt.cs +++ b/src/GameUtils/Math/MathExt.cs @@ -1,5 +1,8 @@ namespace GameUtils.Math; +#pragma warning disable CA5394 // Do not use insecure randomness +#pragma warning disable S2245 // Using pseudorandom number generators (PRNGs) is security-sensitive + /// /// A collection of math-related extra methods. ///