Skip to content

Instantly share code, notes, and snippets.

View notflan's full-sized avatar

Avril notflan

View GitHub Profile
@notflan
notflan / xoroshiro128+.cs
Last active March 25, 2022 02:26
C# implementation of David Blackman and Sebastiano Vigna's xoroshiro128+ PRNG algorithm.
/* Written in 2016-2018 by David Blackman and Sebastiano Vigna (vigna@acm.org)
* To the extent possible under law, the author has dedicated all copyright
* and related and neighboring rights to this software to the public domain
* worldwide. This software is distributed without any warranty.
* See <http://creativecommons.org/publicdomain/zero/1.0/>. */
using System;
using System.Runtime.InteropServices;