Home
last modified time | relevance | path

Searched refs:hasher1 (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/ahash/tests/
Dnopanic.rs11 let mut hasher1 = AHasher::new_with_keys(1, 2); in hash_test_final() localVariable
13 hasher1.write_i32(num); in hash_test_final()
15 (hasher1.finish(), hasher2.finish()) in hash_test_final()
26 let hasher1 = 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()
39 let hasher1 = 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/
Dhash_quality_test.rs134 let hasher1 = constructor(input, 0); in test_keys_affect_every_byte() localVariable
136 let h1 = H::get_hash(&item, hasher1); in test_keys_affect_every_byte()
393 let mut hasher1 = AHasher::new_with_keys(0, 0); in test_single_bit_in_byte() localVariable
394 8_u32.hash(&mut hasher1); 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/
DHashTestUtils.java561 Hasher hasher1 = hashFunction.newHasher(); in assertIndependentHashers() local
564 RandomHasherAction.pickAtRandom(random1).performAction(random1, ImmutableSet.of(hasher1)); in assertIndependentHashers()
568 Assert.assertEquals(expected1, hasher1.hash()); in assertIndependentHashers()
/external/guava/guava-tests/test/com/google/common/hash/
DHashTestUtils.java561 Hasher hasher1 = hashFunction.newHasher(); in assertIndependentHashers() local
564 RandomHasherAction.pickAtRandom(random1).performAction(random1, ImmutableSet.of(hasher1)); in assertIndependentHashers()
568 Assert.assertEquals(expected1, hasher1.hash()); in assertIndependentHashers()