Re: RFR: 8279598: Provide adapter from RandomGenerator to Random [v14]

2022-03-09 Thread Stuart Marks
On Sat, 5 Mar 2022 21:27:47 GMT, Marcono1234 wrote: > Would it make sense to override next(int) to always throw an exception? Even > though it should not be possible for a user to call the method on the > wrapper, it might be better to be on the safe side; for example in case a new > Random

Re: RFR: 8279598: Provide adapter from RandomGenerator to Random [v14]

2022-03-05 Thread Marcono1234
On Sat, 5 Mar 2022 19:48:47 GMT, Yasser Bazzi wrote: >> Hi, could i get a review on this implementation proposed by Stuart Marks, i >> decided to use the >> https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/random/RandomGenerator.html >> interface to create the default

Re: RFR: 8279598: Provide adapter from RandomGenerator to Random [v14]

2022-03-05 Thread Yasser Bazzi
> Hi, could i get a review on this implementation proposed by Stuart Marks, i > decided to use the > https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/random/RandomGenerator.html > interface to create the default method `asRandom()` that wraps around the > newer algorithms