He-Pin opened a new pull request, #3153:
URL: https://github.com/apache/pekko/pull/3153

   ### Motivation
   
   `IdGenerator` uses `java.util.Random` as the parameter type for random 
number generators. JDK 17 introduced `java.util.random.RandomGenerator` as a 
common interface implemented by `Random`, `ThreadLocalRandom`, `SecureRandom`, 
and `SplittableRandom`.
   
   ### Modification
   
   Change the parameter type from `java.util.Random` to `RandomGenerator` in:
   - `random()` factory method
   - `EnhancedDoubleHashGenerator` constructor
   
   ### Result
   
   More flexible random generator API. All existing callers 
(`ThreadLocalRandom.current()`, `new SecureRandom()`) already implement 
`RandomGenerator`, so this is source and binary compatible.
   
   ### Tests
   
   - `sbt "actor/compile"` — passed
   
   ### References
   
   Refs #3136


-- 
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]

Reply via email to