Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkConsistentHashCorrectness (0.09 sec)

  1. guava-tests/test/com/google/common/hash/HashingTest.java

        for (long h : interestingValues) {
          checkConsistentHashCorrectness(h);
        }
        Random r = new Random(7);
        for (int i = 0; i < 20; i++) {
          checkConsistentHashCorrectness(r.nextLong());
        }
      }
    
      private void checkConsistentHashCorrectness(long hashCode) {
        int last = 0;
        for (int shards = 1; shards <= 100000; shards++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (2)
  2. android/guava-tests/test/com/google/common/hash/HashingTest.java

        for (long h : interestingValues) {
          checkConsistentHashCorrectness(h);
        }
        Random r = new Random(7);
        for (int i = 0; i < 20; i++) {
          checkConsistentHashCorrectness(r.nextLong());
        }
      }
    
      private void checkConsistentHashCorrectness(long hashCode) {
        int last = 0;
        for (int shards = 1; shards <= 100000; shards++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
Back to top