Home
last modified time | relevance | path

Searched refs:randomBytes (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
DRandomizedInvalidationClientNameGenerator.java33 byte[] randomBytes = new byte[8]; in generateInvalidatorClientName()
34 RANDOM.nextBytes(randomBytes); in generateInvalidatorClientName()
35 String encoded = Base64.encodeToString(randomBytes, 0, randomBytes.length, Base64.NO_WRAP); in generateInvalidatorClientName()
/external/chromium_org/third_party/WebKit/Source/platform/network/
DFormDataBuilder.cpp129 Vector<char> randomBytes; in generateUniqueBoundaryString() local
133 randomBytes.append(alphaNumericEncodingMap[(randomness >> 24) & 0x3F]); in generateUniqueBoundaryString()
134 randomBytes.append(alphaNumericEncodingMap[(randomness >> 16) & 0x3F]); in generateUniqueBoundaryString()
135 randomBytes.append(alphaNumericEncodingMap[(randomness >> 8) & 0x3F]); in generateUniqueBoundaryString()
136 randomBytes.append(alphaNumericEncodingMap[randomness & 0x3F]); in generateUniqueBoundaryString()
139 boundary.append(randomBytes); in generateUniqueBoundaryString()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DRandomTest.java68 byte[] randomBytes = new byte[100]; in test_nextBytes$B()
69 r.nextBytes(randomBytes); in test_nextBytes$B()
70 byte firstByte = randomBytes[0]; in test_nextBytes$B()
71 for (int counter = 1; counter < randomBytes.length; counter++) in test_nextBytes$B()
72 if (randomBytes[counter] != firstByte) in test_nextBytes$B()