- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for randomLowSurrogate (0.21 sec)
-
android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java
assertPutString( new char[] { HashTestUtils.randomLowSurrogate(new Random()), HashTestUtils.randomHighSurrogate(new Random()) }); } public void testPutStringWithHighLowSurrogate() { assertPutString( new char[] { HashTestUtils.randomHighSurrogate(new Random()), HashTestUtils.randomLowSurrogate(new Random()) }); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
for (int i = 0; i < chars.length; i++) { chars[i] = random.nextBoolean() ? randomLowSurrogate(random) : randomHighSurrogate(random); } String string = new String(chars); assertEquals( hashFunction.hashUnencodedChars(string), hashFunction.newHasher().putUnencodedChars(string).hash()); } static char randomLowSurrogate(Random random) { return (char) (Character.MIN_LOW_SURROGATE
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 25.5K bytes - Viewed (0)