From 1dbb1050ffe67c1201d8eeb72c852d5b3ee32a82 Mon Sep 17 00:00:00 2001 From: disarray2077 <86157825+disarray2077@users.noreply.github.com> Date: Mon, 18 Mar 2024 21:28:30 -0300 Subject: [PATCH] Add static init priority to some classes --- BeefLibs/corlib/src/Random.bf | 1 + BeefLibs/corlib/src/TimeZoneInfo.bf | 1 + 2 files changed, 2 insertions(+) diff --git a/BeefLibs/corlib/src/Random.bf b/BeefLibs/corlib/src/Random.bf index 3fc183cb..3e46ed2d 100644 --- a/BeefLibs/corlib/src/Random.bf +++ b/BeefLibs/corlib/src/Random.bf @@ -21,6 +21,7 @@ namespace System using System.Threading; // This class is thread-safe for random results, but not deterministically thread-safe + [StaticInitPriority(100)] public class Random { // diff --git a/BeefLibs/corlib/src/TimeZoneInfo.bf b/BeefLibs/corlib/src/TimeZoneInfo.bf index 960155cc..f227a407 100644 --- a/BeefLibs/corlib/src/TimeZoneInfo.bf +++ b/BeefLibs/corlib/src/TimeZoneInfo.bf @@ -53,6 +53,7 @@ namespace System { NoThrowOnInvalidTime = 2 } + [StaticInitPriority(100)] sealed public class TimeZoneInfo : IEquatable { // ---- SECTION: members supporting exposed properties -------------*