We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5471a5a commit f03c2bcCopy full SHA for f03c2bc
ext/standard/uniqid.c
@@ -61,7 +61,7 @@ PHP_FUNCTION(uniqid)
61
* a pause of around 10ms.
62
*/
63
(void)gettimeofday((struct timeval *) &tv, (struct timezone *) NULL);
64
- if (tv.tv_sec <= prev_tv.tv_sec ||
+ if (tv.tv_sec < prev_tv.tv_sec ||
65
(tv.tv_sec == prev_tv.tv_sec && tv.tv_usec <= prev_tv.tv_usec)) {
66
tv.tv_sec = prev_tv.tv_sec;
67
tv.tv_usec = prev_tv.tv_usec + 1;
0 commit comments