Skip to content

Fixed the initialization of counter in MicroTime #2

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

Merged
merged 1 commit into from
Mar 8, 2013

Conversation

ezimuel
Copy link
Contributor

@ezimuel ezimuel commented Mar 8, 2013

The static $counter in RandomLib\Source\Microtime is always equal to zero at the end of __construct. I tested with a 64bit Linux environment running PHP 5.3.10.
This comes because bindec() that doesn't work fine on this environment. I replaced it using unpack(). I also provided a Unit Test to cover this behaviour.

ircmaxell added a commit that referenced this pull request Mar 8, 2013
Fixed the initialization of counter in MicroTime
@ircmaxell ircmaxell merged commit 0a26328 into ircmaxell:master Mar 8, 2013
@ircmaxell
Copy link
Owner

Looks great to me. Thanks!

flip111 added a commit to flip111/RandomLib that referenced this pull request Dec 7, 2013
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