Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 38 (0.14 sec)

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

       *
       */
      public void testConsistentHash_linearCongruentialGeneratorCompatibility() {
        int[] golden100 = {
          0, 55, 62, 8, 45, 59, 86, 97, 82, 59,
          73, 37, 17, 56, 86, 21, 90, 37, 38, 83
        };
        for (int i = 0; i < golden100.length; i++) {
          assertEquals(golden100[i], Hashing.consistentHash(i, 100));
        }
        assertEquals(6, Hashing.consistentHash(10863919174838991L, 11));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingTest.java

       *
       */
      public void testConsistentHash_linearCongruentialGeneratorCompatibility() {
        int[] golden100 = {
          0, 55, 62, 8, 45, 59, 86, 97, 82, 59,
          73, 37, 17, 56, 86, 21, 90, 37, 38, 83
        };
        for (int i = 0; i < golden100.length; i++) {
          assertEquals(golden100[i], Hashing.consistentHash(i, 100));
        }
        assertEquals(6, Hashing.consistentHash(10863919174838991L, 11));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
Back to top