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

Probably not what you were looking for... #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davedevelopment
Copy link

...but the first thing I saw was the boolean constructor argument and I didn't like it :)

Not sure this is the best fix for it, but you get the idea.

Everything else looks good to me.

@EVODelavega
Copy link

👎 The suggested SecureRandom class breaks the contract Random imposes. Though PHP does not require compatible constructor declarations, IMHO, it's a bad idea to have extensions set a bad example. Child classes can only add optional arguments, but they can't enforce different/stricter type requirements and all that (The Liskov principle)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants