From 7d90f1f9d20f7baa9147c28323454d74f7922122 Mon Sep 17 00:00:00 2001
From: Thomas Steur <tsteur@users.noreply.github.com>
Date: Wed, 23 Dec 2015 13:08:58 +1300
Subject: [PATCH] Make sure to pass an integer to mt_srand

See https://github.com/piwik/piwik/issues/9419#issuecomment-166764396
---
 core/Common.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/Common.php b/core/Common.php
index 95d333db9b..c6e0247941 100644
--- a/core/Common.php
+++ b/core/Common.php
@@ -586,7 +586,7 @@ class Common
 
         list($usec, $sec) = explode(" ", microtime());
         $seed = ((float)$sec + (float)$usec) * 100000;
-        mt_srand($seed);
+        mt_srand((int) $seed);
 
         for ($i = 0; $i < $length; $i++) {
             $rand_key = mt_rand(0, strlen($chars) - 1);
-- 
GitLab