From a8121a306ec998e74d32a125b8684bd75cb62e4c Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 29 May 2024 11:34:37 +0200 Subject: [PATCH] .NET 8 migration; closes #10 --- FastRng/FastRng.csproj | 2 +- FastRng/MultiThreadedRng.cs | 2 +- FastRngTests/FastRngTests.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FastRng/FastRng.csproj b/FastRng/FastRng.csproj index 74eaaf3..06142fa 100644 --- a/FastRng/FastRng.csproj +++ b/FastRng/FastRng.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 true 1.1.2 1.1.2 diff --git a/FastRng/MultiThreadedRng.cs b/FastRng/MultiThreadedRng.cs index 68c2177..3bbd21a 100644 --- a/FastRng/MultiThreadedRng.cs +++ b/FastRng/MultiThreadedRng.cs @@ -66,7 +66,7 @@ public sealed class MultiThreadedRng : IRandom, IDisposable where TN private uint mZ; // This is the current buffer for the consumer side i.e. the public interfaces: - private TNum[] currentBuffer = Array.Empty(); + private TNum[] currentBuffer = []; // The current pointer to the next current buffer's address to read from: private int currentBufferPointer = BUFFER_SIZE; diff --git a/FastRngTests/FastRngTests.csproj b/FastRngTests/FastRngTests.csproj index 07d3755..2cc4d1d 100644 --- a/FastRngTests/FastRngTests.csproj +++ b/FastRngTests/FastRngTests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false