Improved entropy for report file urls.
[fa-stable.git] / reporting / rep102.php
index e407c6d7b8f77a2323d55d83a5e2a42b2b936584..7f509f8f6fad993f72d5febbb9f2e1733102d13b 100644 (file)
@@ -245,7 +245,7 @@ function print_aged_customer_analysis()
                $pg->skin      = $SysPrefs->graph_skin;
                $pg->built_in  = false;
                $pg->latin_notation = ($SysPrefs->decseps[user_dec_sep()] != ".");
-               $filename = company_path(). "/pdf_files/". uniqid("").".png";
+               $filename = company_path(). "/pdf_files/". random_id().".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;
                $h = $pg->height / 1.5;