pjfanning opened a new issue, #1749:
URL: https://github.com/apache/pekko/issues/1749
ThreadLocalRandom may not be a great idea if you are using Virtual Threads.
Java 17+ has a new RandomGenerator and we could allow users to choose via
config which generator to use.
```
RandomGenerator random = RandomGenerator.of("L64X128MixRandom")
```
List of algorithms:
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/random/package-summary.html#algorithms
We could have a centralised util function to get a generator. Java 8-16
users would get a ThreadLocalRandominstance when this functio was called. Java
17+ users - we could use Reflection or MethodHandles to create a generator
based on config.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]