Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 8.2] Replace Math::randomInt() internals, use Random\Randomizer #150

Closed
aedart opened this issue Feb 19, 2023 · 0 comments
Closed

[PHP 8.2] Replace Math::randomInt() internals, use Random\Randomizer #150

aedart opened this issue Feb 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@aedart
Copy link
Owner

aedart commented Feb 19, 2023

Description

From PHP v8.2, the Random\Randomizer is made available. The utils Math::randomInt() should be refactored or redesigned to use this instead, with an option to specify the desired engine... Or alternatively, perhaps remove this entirely? (Not sure that a wrapper method is required anymore)!

@aedart aedart added the enhancement New feature or request label Feb 19, 2023
@aedart aedart added this to the v8.x milestone Feb 19, 2023
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
Factory doesn't do anything special - added for the sake of convenience.

#150
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
aedart added a commit that referenced this issue Mar 14, 2024
Name makes more sense now.

#150, #151
aedart added a commit that referenced this issue Mar 14, 2024
Replaced by int() in NumericRandomizer.

#150
aedart added a commit that referenced this issue Mar 15, 2024
Now each type of randomizer has its own responsibilities and less changes of naming conflicts (e.g. shuffleBytes() vs. shuffleArray() have both been renamed to shuffle()).

#150, #151
@aedart aedart self-assigned this Mar 15, 2024
@aedart aedart closed this as completed Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant