- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for checkNoFunnels (0.16 seconds)
-
guava-tests/test/com/google/common/hash/HashingTest.java
HashTestUtils.checkNoFunnels(Hashing.md5()); HashTestUtils.assertInvariants(Hashing.md5()); assertThat(Hashing.md5().toString()).isEqualTo("Hashing.md5()"); } public void testSha1() { HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4); HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1()); HashTestUtils.checkNoFunnels(Hashing.sha1());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 26.7K bytes - Click Count (2) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
* bit(i). One pair must differ in output bit(j), and one pair must not. This proves that input * bit(i) can alter output bit(j). */ static void checkNoFunnels(HashFunction function) { Random rand = new Random(0); int keyBits = 32; int hashBits = function.bits(); // output loop tests input bit for (int i = 0; i < keyBits; i++) {
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)