- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 688 for hash2 (0.02 seconds)
-
android/guava/src/com/google/common/hash/BloomFilterStrategies.java
long hash1 = lowerEight(bytes); long hash2 = upperEight(bytes); boolean bitsChanged = false; long combinedHash = hash1; for (int i = 0; i < numHashFunctions; i++) { // Make the combined hash positive and indexable bitsChanged |= bits.set((combinedHash & Long.MAX_VALUE) % bitSize); combinedHash += hash2; } return bitsChanged; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 10.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
// Verify hash is not null byte[] hash = transport.getPreauthIntegrityHash(); assertNotNull(hash); // Verify hash is a copy, not the original byte[] hash2 = transport.getPreauthIntegrityHash(); assertNotSame(hash, hash2); assertArrayEquals(hash, hash2); } /** * Test that pre-auth hash is reset on error */ @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 10.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); } assertThat(hash.toString()).isEqualTo(expectedHashCode.toString); assertSideEffectFree(hash); assertReadableBytes(hash); } private static void assertSideEffectFree(HashCode hash) { byte[] original = hash.asBytes(); byte[] mutated = hash.asBytes(); mutated[0]++; assertThat(hash.asBytes()).isEqualTo(original); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
int key2 = key1 ^ (1 << i); // get hashes int hash1 = function.hashInt(key1).asInt(); int hash2 = function.hashInt(key2).asInt(); // test whether the hash values have same output bits same |= ~(hash1 ^ hash2); // test whether the hash values have different output bits diff |= hash1 ^ hash2; count++;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 25.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
// Act byte[] hash1 = NtlmUtil.getNTHash(password1); byte[] hash2 = NtlmUtil.getNTHash(password2); // Assert assertFalse(Arrays.equals(hash1, hash2), "Different passwords should produce different hashes"); assertEquals(16, hash1.length, "NT hash should be 16 bytes"); assertEquals(16, hash2.length, "NT hash should be 16 bytes"); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12K bytes - Click Count (1) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); } assertThat(hash.toString()).isEqualTo(expectedHashCode.toString); assertSideEffectFree(hash); assertReadableBytes(hash); } private static void assertSideEffectFree(HashCode hash) { byte[] original = hash.asBytes(); byte[] mutated = hash.asBytes(); mutated[0]++; assertThat(hash.asBytes()).isEqualTo(original); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
src/test/java/jcifs/util/CryptoTest.java
@DisplayName("Should calculate MD4 hash correctly") void testMD4Hash() { // Given String input = "Hello World"; byte[] data = input.getBytes(); // When MessageDigest md4 = Crypto.getMD4(); byte[] hash = md4.digest(data); // Then assertNotNull(hash); assertEquals(16, hash.length); // MD4 produces 128-bit hash } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java
StopwordsItem item1 = new StopwordsItem(1, null); StopwordsItem item2 = new StopwordsItem(2, null); // Should not throw int hash1 = item1.hashCode(); int hash2 = item2.hashCode(); // Same null input should produce same hashCode assertEquals(hash1, hash2); // Consistent hashCode
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
byte[] hash1 = transport.calculatePreauthHash(input, 0, input.length, null); assertNotNull(hash1); assertEquals(64, hash1.length, "SHA-512 size"); byte[] hash2 = transport.calculatePreauthHash(new byte[] { 50 }, 0, 1, hash1); assertNotNull(hash2); assertEquals(64, hash2.length);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
ProtwordsItem item1 = new ProtwordsItem(1, null); ProtwordsItem item2 = new ProtwordsItem(2, null); // Should not throw int hash1 = item1.hashCode(); int hash2 = item2.hashCode(); // Same null input should produce same hashCode assertEquals(hash1, hash2); // Consistent hashCode
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0)