Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pickAtRandom (0.19 sec)

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

                new NonStreamingVersion().newHasher(),
                new NonStreamingVersion().newHasher(123));
        Random random = new Random(0);
        for (int i = 0; i < 200; i++) {
          RandomHasherAction.pickAtRandom(random).performAction(random, hashers);
        }
        HashCode[] codes = new HashCode[hashers.size()];
        for (int i = 0; i < hashers.size(); i++) {
          codes[i] = hashers.get(i).hash();
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

          Iterable<Hasher> sinksAndControl =
              Iterables.concat(sinks, Collections.singleton(controlSink));
          for (int insertion = 0; insertion < totalInsertions; insertion++) {
            RandomHasherAction.pickAtRandom(random).performAction(random, sinksAndControl);
          }
          // We need to ensure that at least 4 bytes have been put into the hasher or else
          // Hasher#hash will throw an ISE.
          int intToPut = random.nextInt();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top