PKHeX/PKHeX.Core/MysteryGifts
Kurt c301ce88ab Update Random to be a bit more thread safe
Random isn't thread safe; users of PKHeX.Core.dll might run multithreaded operations (see PKSM + ALM), so we need to have a thread-specific RNG available.

Thread Local get; to improve performance, save the random object locally whenever it is used more than once in the method.

https://docs.microsoft.com/en-us/dotnet/api/system.threading.threadlocal-1?redirectedfrom=MSDN&view=netframework-4.8
https://stackoverflow.com/questions/18333885/threadstatic-v-s-threadlocalt-is-generic-better-than-attribute/18337158#18337158
2020-01-25 21:49:52 -08:00
..
MysteryGift.cs Make Move[] readonly list 2020-01-18 16:46:38 -08:00
MysteryUtil.cs PKHeX.Core Nullable cleanup (#2401) 2019-10-16 18:47:31 -07:00
PCD.cs Make Move[] readonly list 2020-01-18 16:46:38 -08:00
PGF.cs Update Random to be a bit more thread safe 2020-01-25 21:49:52 -08:00
PGT.cs Make Move[] readonly list 2020-01-18 16:46:38 -08:00
PL6.cs Cleanup 2019-10-26 12:33:58 -07:00
WB7.cs Update Random to be a bit more thread safe 2020-01-25 21:49:52 -08:00
WC3.cs Remove unnecessary null handling 2020-01-20 23:32:05 -08:00
WC6.cs Update Random to be a bit more thread safe 2020-01-25 21:49:52 -08:00
WC6Full.cs PKHeX.Core Nullable cleanup (#2401) 2019-10-16 18:47:31 -07:00
WC7.cs Update Random to be a bit more thread safe 2020-01-25 21:49:52 -08:00
WC7Full.cs PKHeX.Core Nullable cleanup (#2401) 2019-10-16 18:47:31 -07:00
WC8.cs Update Random to be a bit more thread safe 2020-01-25 21:49:52 -08:00
WR7.cs Simplify formchange calls 2019-12-28 19:00:01 -08:00