diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-12-15 12:48:56 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-12-15 12:48:56 -0800 |
commit | 45c63f4d118bfc99924edb8685442035349af6db (patch) | |
tree | 995e248347743f905d7c8fc29343e88d74b31441 /modules/gallery/tests/Albums_Controller_Test.php | |
parent | 6fb0eb4e97e3bbfa50029f0b4249c10bd22abe09 (diff) |
Use mt_rand() instead of rand() since it provides better portability.
Fixes #1527.
Diffstat (limited to 'modules/gallery/tests/Albums_Controller_Test.php')
-rw-r--r-- | modules/gallery/tests/Albums_Controller_Test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/tests/Albums_Controller_Test.php b/modules/gallery/tests/Albums_Controller_Test.php index 6c64394d..86c74890 100644 --- a/modules/gallery/tests/Albums_Controller_Test.php +++ b/modules/gallery/tests/Albums_Controller_Test.php @@ -31,7 +31,7 @@ class Albums_Controller_Test extends Gallery_Unit_Test_Case { $album = test::random_album(); // Randomize to avoid conflicts. - $new_name = "new_name_" . rand(); + $new_name = "new_name_" . mt_rand(); $_POST["name"] = $new_name; $_POST["title"] = "new title"; |