Improved entropy for report file urls.
[fa-stable.git] / includes / ui / ui_controls.inc
index 515cf999322cd0adabcdc3169b49e0086c692b87..0f9be33eb5d1363f188ab622a38644a3927142fc 100644 (file)
@@ -66,7 +66,7 @@ function end_form($breaks=0)
 {
        global $Ajax, $hidden_fields;
 
-       $_SESSION['csrf_token'] = hash('sha256', uniqid(mt_rand(), true));
+       $_SESSION['csrf_token'] = random_id();
        if ($breaks)
                br($breaks);
        hidden('_focus');