Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for collisions (0.34 sec)

  1. android/guava/src/com/google/common/cache/Striped64.java

       * there would exist a perfect hash function mapping threads to
       * slots that eliminates collisions. When we reach capacity, we
       * search for this mapping by randomly varying the hash codes of
       * colliding threads.  Because search is random, and collisions
       * only become known via CAS failures, convergence can be slow,
       * and because threads are typically not bound to CPUS forever,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jan 15 22:17:15 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-utils.go

    		// for users who might have used master
    		// branch
    		fi.Data = inData.find(fi.DataDir)
    	}
    	return fi, nil
    }
    
    // hashDeterministicString will return a deterministic hash for the map values.
    // Trivial collisions are avoided, but this is by no means a strong hash.
    func hashDeterministicString(m map[string]string) uint64 {
    	// Seed (random)
    	crc := uint64(0xc2b40bbac11a7295)
    	// Xor each value to make order independent
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            assertTrue(latch.await(10, TimeUnit.SECONDS), "All threads should complete");
            executor.shutdown();
            assertEquals(0, collisions.get(), "There should be no nonce collisions");
            assertEquals(threadCount * noncesPerThread, allNonces.size(), "All nonces should be unique");
        }
    
        @Test
        @DisplayName("Should handle SMB 3.0.2 dialect")
        void testSMB302Dialect() {
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

      // (1) 00 01 02 03 04 05 06 07 80
      // (2) 00 01 02 03 04 05 06 07 81
      // (3) 00 01 02 03 04 05 06 07 ff (or anything in between)
      // A fault implementation will generate collisions for these inputs.
      public void testCollisionsDueToIncorrectSignExtension() {
        byte[] col1 = new byte[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, (byte) 0x80};
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. docs/debugging/hash-set/main.go

    	return int(sum64 % uint64(cardinality))
    }
    
    // hashOrder - hashes input key to return consistent
    // hashed integer slice. Returned integer order is salted
    // with an input key. This results in consistent order.
    // NOTE: collisions are fine, we are not looking for uniqueness
    // in the slices returned.
    func hashOrder(key string, cardinality int) []int {
    	if cardinality <= 0 {
    		// Returns an empty int slice for cardinality < 0.
    		return nil
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. apache-maven/src/main/appended-resources/META-INF/NOTICE.vm

    includes software developed by the ObjectWeb consortium as part of the ASM project at http://asm.ow2.org/ http://asm.ow2.org/. A subset of ASM is re-packaged within the source and binary of the plug-in (org.eclipse.sisu.space.asm.*) to avoid version collisions with other usage and is also available from the plug-in's github repository. Your use of the ASM code is subject to the terms and conditions of the ASM License below which is also available at http://asm.ow2.org/license.html http://asm.ow2.org/license.html....
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Sep 10 19:27:25 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-utils_test.go

    			m := tt.arg
    			for range n {
    				if got := hashDeterministicString(m); got != want {
    					t.Errorf("hashDeterministicString() = %v, want %v", got, want)
    				}
    			}
    			// Check casual collisions
    			if m == nil {
    				m = make(map[string]string)
    			}
    			m["12312312"] = ""
    			if got := hashDeterministicString(m); got == want {
    				t.Errorf("hashDeterministicString() = %v, does not want %v", got, want)
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/bigger-applications.md

    ///
    
    ### Avoid name collisions { #avoid-name-collisions }
    
    We are importing the submodule `items` directly, instead of importing just its variable `router`.
    
    This is because we also have another variable named `router` in the submodule `users`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Predicates.java

            if (!components.get(i).apply(t)) {
              return false;
            }
          }
          return true;
        }
    
        @Override
        public int hashCode() {
          // add a random number to avoid collisions with OrPredicate
          return components.hashCode() + 0x12472c2c;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof AndPredicate) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/Hashing.java

       *
       * <p>This is designed for generating persistent fingerprints of strings. It isn't
       * cryptographically secure, but it produces a high-quality hash with fewer collisions than some
       * alternatives we've used in the past.
       *
       * <p>FarmHash fingerprints are encoded by {@link HashCode#asBytes} in little-endian order. This
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.8K bytes
    - Viewed (0)
Back to top