Skip to content

Commit f03c2bc

Browse files
committed
< instead of <= qo that second member can be used
1 parent 5471a5a commit f03c2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/uniqid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PHP_FUNCTION(uniqid)
6161
* a pause of around 10ms.
6262
*/
6363
(void)gettimeofday((struct timeval *) &tv, (struct timezone *) NULL);
64-
if (tv.tv_sec <= prev_tv.tv_sec ||
64+
if (tv.tv_sec < prev_tv.tv_sec ||
6565
(tv.tv_sec == prev_tv.tv_sec && tv.tv_usec <= prev_tv.tv_usec)) {
6666
tv.tv_sec = prev_tv.tv_sec;
6767
tv.tv_usec = prev_tv.tv_usec + 1;

0 commit comments

Comments
 (0)