Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for VALID (0.09 sec)

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

        Random random = new Random();
        for (int i = 0; i < 100; i++) {
          byte[] bytes = new byte[64];
          random.nextBytes(bytes);
          String s = new String(bytes, UTF_16LE); // so all random strings are valid
          assertEquals(
              new TestHasher().putUnencodedChars(s).hash(),
              new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash());
          assertEquals(
              new TestHasher().putUnencodedChars(s).hash(),
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top