Closed localheinz closed 10 months ago
Wouldn't this break mt_seed?
@bram-pkg
I think the entire randomization needs a bit of rework!
Given that randomization is infrastructure (similar to a clock), I think it makes sense to abstract it away. Then we can change the internal implementation to whatever makes the most sense, and eventually migrate away towards https://www.php.net/manual/en/class.random-randomizer.php.
What do you think?
@bram-pkg
I think the entire randomization needs a bit of rework!
Given that randomization is infrastructure (similar to a clock), I think it makes sense to abstract it away. Then we can change the internal implementation to whatever makes the most sense, and eventually migrate away towards https://www.php.net/manual/en/class.random-randomizer.php.
What do you think?
Sounds perfect to bind an instance of that class to our container, so we can resolve the randomiser from anywhere.
What is the reason for this PR?
random_api_migration
fixermake cs
Author's checklist
Summary of changes
Review checklist