Improved entropy for report file urls.
[fa-stable.git] / reporting / rep706.php
index ebb9cd8328416852d555f88b0dac053dc731adda..cbc831486950e3295297fd0b003b76e8d4793996 100644 (file)
@@ -313,7 +313,7 @@ function print_balance_sheet()
                $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;