Searched refs:hasher2 (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/ahash/tests/ |
D | nopanic.rs | 12 let mut hasher2 = AHasher::new_with_keys(3, 4); in hash_test_final() localVariable 14 hasher2.write(string.as_bytes()); in hash_test_final() 15 (hasher1.finish(), hasher2.finish()) in hash_test_final() 27 let hasher2 = AHasher::new_with_keys(1, 2); in hash_test_specialize() localVariable 28 (i32::get_hash(&num, hasher1), <[u8]>::get_hash(string.as_bytes(), hasher2)) in hash_test_specialize() 40 let hasher2 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_random() localVariable 41 (i32::get_hash(&num,hasher1), <[u8]>::get_hash(string.as_bytes(), hasher2)) in hash_test_random()
|
/external/rust/crates/ahash/src/ |
D | hash_quality_test.rs | 135 let hasher2 = constructor(0, input); in test_keys_affect_every_byte() localVariable 137 let h2 = H::get_hash(&item, hasher2); in test_keys_affect_every_byte() 395 let mut hasher2 = AHasher::new_with_keys(0, 0); in test_single_bit_in_byte() localVariable 396 0_u32.hash(&mut hasher2); in test_single_bit_in_byte() 397 assert_sufficiently_different(hasher1.finish(), hasher2.finish(), 1); in test_single_bit_in_byte()
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | HashTestUtils.java | 562 Hasher hasher2 = hashFunction.newHasher(); in assertIndependentHashers() local 565 RandomHasherAction.pickAtRandom(random2).performAction(random2, ImmutableSet.of(hasher2)); in assertIndependentHashers() 569 Assert.assertEquals(expected2, hasher2.hash()); in assertIndependentHashers()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashTestUtils.java | 562 Hasher hasher2 = hashFunction.newHasher(); in assertIndependentHashers() local 565 RandomHasherAction.pickAtRandom(random2).performAction(random2, ImmutableSet.of(hasher2)); in assertIndependentHashers() 569 Assert.assertEquals(expected2, hasher2.hash()); in assertIndependentHashers()
|