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/Item_Model_Test.php | |
parent | 6fb0eb4e97e3bbfa50029f0b4249c10bd22abe09 (diff) |
Use mt_rand() instead of rand() since it provides better portability.
Fixes #1527.
Diffstat (limited to 'modules/gallery/tests/Item_Model_Test.php')
-rw-r--r-- | modules/gallery/tests/Item_Model_Test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php index 1e6d54d0..0d6d10af 100644 --- a/modules/gallery/tests/Item_Model_Test.php +++ b/modules/gallery/tests/Item_Model_Test.php @@ -278,10 +278,10 @@ class Item_Model_Test extends Gallery_Unit_Test_Case { public function basic_validation_test() { $item = ORM::factory("item"); - $item->album_cover_item_id = rand(); // invalid + $item->album_cover_item_id = mt_rand(); // invalid $item->description = str_repeat("x", 70000); // invalid $item->name = null; - $item->parent_id = rand(); + $item->parent_id = mt_rand(); $item->slug = null; $item->sort_column = "bogus"; $item->sort_order = "bogus"; |