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

Math\Rand::getInteger returns no values for the given range #6168

Merged
merged 1 commit into from
Apr 24, 2014
Merged

Math\Rand::getInteger returns no values for the given range #6168

merged 1 commit into from
Apr 24, 2014

Conversation

tommyseus
Copy link
Contributor

The function returns no values for the given range.

mt_rand(0-99) --> 0-99
Rand::getInteger(0-99) --> 0-63

There's a Bug in the Bitcount function for integers.
100 = 1100100 = 7 Bits (not 6)

@localheinz
Copy link
Member

I apologize for the inconvenience, but the build is failing in relation to #6180.

Rebasing onto master and push-forcing will help.

@tommyseus
Copy link
Contributor Author

Thanks for the hint. Git rebase executed.

@ezimuel ezimuel merged commit 32829c3 into zendframework:master Apr 24, 2014
@tommyseus tommyseus deleted the randgetinteger branch April 24, 2014 11:10
@Ocramius Ocramius added this to the 2.3.2 milestone Apr 29, 2014
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants