-
CSR
-
Resolution: Approved
-
P3
-
None
-
minimal
-
None. This is a new method on a final class.
-
Java API
-
SE
Summary
Add SplittableRandom.nextBytes(byte[])
.
Problem
java.util.Random has a nextBytes method, and SplittableRandom implements most Random methods, but nextBytes was missed.
Solution
Implement nextBytes in the obvious way.
Specification
/**
* Fills a user-supplied byte array with generated pseudorandom bytes.
*
* @param bytes the byte array to fill with pseudorandom bytes
* @throws NullPointerException if bytes is null
* @since 10
*/
public void nextBytes(byte[] bytes) {
- csr of
-
JDK-8188047 Add SplittableRandom.nextBytes
-
- Resolved
-