private static void Main() { using var array = new AlignedArray <uint>(1024, 16); using var sfmt = new SfmtPrimitiveState(); SfmtPrimitive.InitGenRand(sfmt, 1234); SfmtPrimitive.FillArray32(sfmt, array, 1024); Console.WriteLine(array[0]); }
public void JumpTest() { var sfmt = new SfmtPrimitiveState(); SfmtPrimitive.InitGenRand(sfmt, 1234); SfmtJump.Jump(sfmt, "2"); var expected = File.ReadLines("./Data/jump2.txt").Select(x => uint.Parse(x)).ToArray(); expected.Length.Is(N32); var actual = new ReadOnlySpan <uint>(sfmt.State, N32).ToArray(); for (var i = 0; i < N32; i++) { actual[i].Is(expected[i]); } }