Wrong implicit conversion from double. Fixed by using int.
[fa-stable.git] / inventory / manage / items.php
index ae2686cdc89498a4ff99b71a8bed7aabbe2f7039..3cc6ddaf9e898a8d16252db75fecb17b11b411d0 100644 (file)
@@ -668,7 +668,7 @@ function generateBarcode() {
        $tmpBarcodeID = "";
        $tmpCountTrys = 0;
        while ($tmpBarcodeID == "")     {
-               srand ((double) microtime( )*1000000);
+               srand ((int) microtime( )*1000000);
                $random_1  = rand(1,9);
                $random_2  = rand(0,9);
                $random_3  = rand(0,9);