Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/
DUUID.java144 byte[] randomBytes = new byte[16]; in randomUUID()
145 ng.nextBytes(randomBytes); in randomUUID()
146 randomBytes[6] &= 0x0f; /* clear version */ in randomUUID()
147 randomBytes[6] |= 0x40; /* set to version 4 */ in randomUUID()
148 randomBytes[8] &= 0x3f; /* clear variant */ in randomUUID()
149 randomBytes[8] |= 0x80; /* set to IETF variant */ in randomUUID()
150 return new UUID(randomBytes); in randomUUID()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRandomTest.java82 byte[] randomBytes = new byte[100]; in test_nextBytes$B()
83 r.nextBytes(randomBytes); in test_nextBytes$B()
84 byte firstByte = randomBytes[0]; in test_nextBytes$B()
85 for (int counter = 1; counter < randomBytes.length; counter++) in test_nextBytes$B()
86 if (randomBytes[counter] != firstByte) in test_nextBytes$B()
/libcore/ojluni/src/main/native/
DIOUtil.c217 NATIVE_METHOD(IOUtil, randomBytes, "([B)Z"),
/libcore/ojluni/src/main/java/java/security/
DSecureRandom.java690 private byte[] randomBytes; field in SecureRandom
/libcore/ojluni/src/main/java/sun/nio/ch/
DIOUtil.java325 static native boolean randomBytes(byte[] someBytes); in randomBytes() method in IOUtil