M src/Tests/Distributions/UniformIntTests.cs +1 -0
@@ 4,6 4,7 @@ using RandN.Rngs;
// ReSharper disable RedundantCast
// ReSharper disable RedundantOverflowCheckingContext
// ReSharper disable UnreachableCode
+// ReSharper disable HeuristicUnreachableCode
/*** This file is auto generated - any changes made here will be lost. ***/
namespace RandN.Distributions;
M src/Tests/Rngs/ThreadLocalRngTests.cs +2 -2
@@ 38,7 38,7 @@ public sealed class ThreadLocalRngTests
wrapper.NextUInt32(); // Make sure the RNG is instantiated
var threadLocalField = typeof(ThreadLocalRng).GetField("ThreadLocal", BindingFlags.NonPublic | BindingFlags.Static);
var threadLocal = (ThreadLocal<ChaCha>)threadLocalField!.GetValue(wrapper);
- var internalRng = threadLocal.Value;
+ var internalRng = threadLocal!.Value;
dictionary.TryAdd(internalRng, 0);
}
catch (Exception ex)
@@ 107,4 107,4 @@ public sealed class ThreadLocalRngTests
Assert.Equal(threadCount, completed.Count);
}
-}
No newline at end of file
+}