Skip to content

Commit

Permalink
Merge pull request #8 from there4/php-max-int-safe-mode
Browse files Browse the repository at this point in the history
Fix strict warning for rand int sizes
  • Loading branch information
craig-davis authored Oct 1, 2020
2 parents 95389fe + 20f3061 commit 5ac03f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AnalyticsEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ public function trackEvent($object, $action, $label = '', $value = 1)
{
$var_utmac = $this->_code;
$var_utmhn = $this->_domain;
$var_utmn = rand(1000000000, 9999999999); //random request number
$var_cookie = rand(10000000, 99999999); //random cookie number
$var_random = rand(1000000000, 2147483647); //number under 2147483647
$var_today = time(); //today
$var_referer = $this->getCurrentUrl(); //referer url
$var_utmn = rand(1000000000, PHP_INT_MAX); //random request number
$var_cookie = rand(10000000, PHP_INT_MAX); //random cookie number
$var_random = rand(1000000000, 2147483647); //number under 2147483647
$var_today = time(); //today
$var_referer = $this->getCurrentUrl(); //referer url
$var_utmp = 'index.php';
$var_uservar = '';

Expand Down

0 comments on commit 5ac03f0

Please sign in to comment.