Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for verifyHashFunction (0.3 sec)

  1. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

              }
            };
        // Murmur3A, MurmurHash3 for x86, 32-bit (MurmurHash3_x86_32)
        // https://github.com/aappleby/smhasher/blob/master/src/main.cpp
        HashTestUtils.verifyHashFunction(hf, 32, 0xB0F57EE3);
      }
    
      public void testParanoid() {
        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:29:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashTestUtils.java

        for (int i = 0; i < string.length(); i++) {
          bytes[i] = (byte) string.charAt(i);
        }
        return bytes;
      }
    
      interface HashFn {
        byte[] hash(byte[] input, int seed);
      }
    
      static void verifyHashFunction(HashFn hashFunction, int hashbits, int expected) {
        int hashBytes = hashbits / 8;
    
        byte[] key = new byte[256];
        byte[] hashes = new byte[hashBytes * 256];
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top