private ulong Last; // last offset in the sample protected override void CreatePattern() { var pattern = new XorShiftStar64(); var length = Sample.Length >> 1; ulong seed = pattern.Seed; pattern.Next(Sample, 0, length); Last = Sample.Length - 1; for (ulong i = 0; i < length; i++) Sample[Last - i] = Sample[i]; Iterations = length; }
protected override void CreatePattern() { var pattern = new XorShiftStar64(); var length = Sample.Length >> 1; ulong seed = pattern.Seed; pattern.Next(Sample, 0, length); pattern.Seed = seed; pattern.Next(Sample, length, length); Iterations = length; }