Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fixed Zend\Math\Rand::getString() to pass the parameter $strong to ::getBytes() #2764

Closed
wants to merge 1 commit into from

Conversation

webmozart
Copy link
Contributor

Previously, the parameter $strong wasn't passed from getString() to getBytes() in the default chase that $charlist was empty. This PR fixes that.

@weierophinney
Copy link
Member

Is there a way to test this? If so, could you please do so, @bschussek ?

@ghost ghost assigned weierophinney Oct 16, 2012
@webmozart
Copy link
Contributor Author

@weierophinney I tried to figure one out. The problem is that the existing tests are very scarce, $strong in general isn't even tested. Maybe the original authors of Rand can help here?

@weierophinney
Copy link
Member

@bschussek Yeah, on reflection, I'm not sure there is a way to test this. I'll merge.

weierophinney added a commit that referenced this pull request Oct 17, 2012
weierophinney added a commit to zendframework/zend-math that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-math that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants