Improved entropy for report file urls.
[fa-stable.git] / reporting / rep102.php
index 0034d786654176b6add8c467cce7fffb7cf761ca..754d929a6393897056337416bac5cf927facbc2e 100644 (file)
@@ -248,7 +248,7 @@ function print_aged_customer_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;