Skip to content

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