Beispiel #1
0
        public new static xxHash64 Create(string hashName = "System.Security.Cryptography.xxHash64")
        {
            var ret = new xxHash64();

            ret.Initialize();
            return(ret);
        }
Beispiel #2
0
        public void Setup()
        {
            var rnd = new Random(len);

            data = new byte[len];
            rnd.NextBytes(data);

            hasher01 = new Hasher01(seed);
            hasher03 = Hasher03.xxHashFactory.Instance.Create(new Hasher03.xxHashConfig()
            {
                HashSizeInBits = 64, Seed = seed
            });
            hasher04 = Hasher04.Create();
            hasher05 = Hasher05.New(seed);
            hasher06 = new Hasher06((uint)seed);
            hasher08 = new Hasher08().AsHashAlgorithm();
            hasher09 = new Hasher09().AsHashAlgorithm();
            hasher13 = Hasher13.Create64(seed);
        }