-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
Java 17 added RandomGenerator interface. However, existing method Collections.shuffle accepts old java.util.Random class. While since Java 19, it's possible to use Random.from(RandomGenerator) wrapper, it would be more convenient to provide direct overload shuffle(List<?> list, RandomGenerator rnd).
- csr for
-
JDK-8294694 Add Collections.shuffle overload that accepts RandomGenerator interface
-
- Closed
-
- relates to
-
JDK-8300817 The build is broken after JDK-8294693
-
- Closed
-
-
JDK-8218282 Use ThreadLocalRandom As Default RNG For Collection Shuffle
-
- Open
-