From b48d9bf5d412a6f56f3f9ba4bad141ddfe175727 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 7 Sep 2009 12:51:21 +0000 Subject: - Use faster/secure mt_rand() (#1486094) --- program/include/rcmail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/include/rcmail.php') diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 4624ee194..b148e5168 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -879,7 +879,7 @@ class rcmail $key = $this->task; if (!$_SESSION['request_tokens'][$key]) - $_SESSION['request_tokens'][$key] = md5(uniqid($key . rand(), true)); + $_SESSION['request_tokens'][$key] = md5(uniqid($key . mt_rand(), true)); return $_SESSION['request_tokens'][$key]; } -- cgit v1.2.3