Improved entropy for report file urls.
[fa-stable.git] / reporting / rep202.php
index c3b1e87a41ec7c9f0323cb30ea437b845238fe94..de6ade5eb14a6985fe0fd29c0e84f942a716f6a1 100644 (file)
@@ -256,7 +256,7 @@ function print_aged_supplier_analysis()
                $pg->skin      = $graph_skin;
                $pg->built_in  = false;
                $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->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;