Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 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;
 }