summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Item_Helper_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-15 12:48:56 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-15 12:48:56 -0800
commit45c63f4d118bfc99924edb8685442035349af6db (patch)
tree995e248347743f905d7c8fc29343e88d74b31441 /modules/gallery/tests/Item_Helper_Test.php
parent6fb0eb4e97e3bbfa50029f0b4249c10bd22abe09 (diff)
Use mt_rand() instead of rand() since it provides better portability.
Fixes #1527.
Diffstat (limited to 'modules/gallery/tests/Item_Helper_Test.php')
-rw-r--r--modules/gallery/tests/Item_Helper_Test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/tests/Item_Helper_Test.php b/modules/gallery/tests/Item_Helper_Test.php
index eb2458cb..c93cc239 100644
--- a/modules/gallery/tests/Item_Helper_Test.php
+++ b/modules/gallery/tests/Item_Helper_Test.php
@@ -92,7 +92,7 @@ class Item_Helper_Test extends Gallery_Unit_Test_Case {
}
public function move_conflicts_result_in_a_rename_test() {
- $rand = rand();
+ $rand = mt_rand();
$photo1 = test::random_photo_unsaved(item::root());
$photo1->name = "{$rand}.jpg";
$photo1->slug = (string)$rand;