Beispiel #1
0
        public void DoAvalancheTestForFarm()
        {
            FarmHashStrategy sut = new FarmHashStrategy(new FarmHash0To16BytesStrategy(), new FarmHash17To32BytesStrategy(), new FarmHash33To64BytesStrategy(), new FarmHashOver64BytesStrategy());

            var numOutputBytes  = sizeof(ulong);
            var tester          = new AvalancheTester <ulong>(sut, new ULongBitOperator(), numInputBytes, numOutputBytes);
            var avalancheResult = tester.PerformAvalancheTest(sampleSize);

            ConfirmResults(numInputBytes, numOutputBytes, avalancheResult);
        }
Beispiel #2
0
 public void Initialize()
 {
     _sut = new FarmHashStrategy(new FarmHash0To16BytesStrategy(), new FarmHash17To32BytesStrategy(), new FarmHash33To64BytesStrategy(), new FarmHashOver64BytesStrategy());
 }