XorShiftAddSharp 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package XorShiftAddSharp --version 1.0.0                
NuGet\Install-Package XorShiftAddSharp -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XorShiftAddSharp" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XorShiftAddSharp --version 1.0.0                
#r "nuget: XorShiftAddSharp, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XorShiftAddSharp as a Cake Addin
#addin nuget:?package=XorShiftAddSharp&version=1.0.0

// Install XorShiftAddSharp as a Cake Tool
#tool nuget:?package=XorShiftAddSharp&version=1.0.0                

XorShiftAddSharp

This is a pure C# implementation of a XORSHIFT-ADD (XSadd) pseudo-random number generator.

Concept

  • Small internal state size (128bit)
  • Long period(2^128-1)
  • Save and restore internal state anytime.
  • Can Retrieve the arbitrary n-step jumped state.

Overview

  • There is the implementation of almost same semantics of "xsadd.c" and "xsadd.h". (XorShiftAddCore)
  • There is the implementation of Inherited by System.Random. (XorShiftAdd)
  • Xml documentations are available (but currently partially)
  • Compared tests from original library are passed.

Change Log

ver0.1

Initial release.

ver 0.2

Changed XorShiftAdd psesudo-random generator's internal state from Span<uint> to InternalState struct. Unfortunately this is a devastating changes from ver 0.1 .

ver 0.2.1

Fix: XorShiftAddCore and XorShiftAdd class Jump method's baseStep parameter can now be prefixed with "0x" or "0X". (Previous Jump method could be accept prefix, but CalculateJumpPolynomial couldn't be accept prefix.)

ver 0.3.0.0

Add XorShiftAddPool XorShiftAddPoolObjectPolicy

These are provides the object pool. That are outputs are 2^64 range splitted instance.

Ver1.0.0.0

Add xml comment to XorShiftAddCore.cs

Fixed incorrect test fixture.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 263 3/30/2021
1.0.0 274 8/12/2020
0.3.0 322 8/1/2020
0.2.1 538 7/26/2020
0.2.0 466 7/26/2020
0.1.0 666 7/22/2020