diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-12-15 14:57:00 -0800 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-12-15 14:57:00 -0800 | 
| commit | cd48b89f3166e7fa732b5cb06d33fba018af9127 (patch) | |
| tree | 9ad981df0d736dc186463aac4676fdba2bc232b8 /modules/gallery/helpers/block_manager.php | |
| parent | 45c63f4d118bfc99924edb8685442035349af6db (diff) | |
Consolidate all the random code into a random helper that offers:
  random::hash()
  random::string()
  random::percent()
  random::int()
So that we don't have lots of different ways to get random values all
over the code.  Follow-on to #1527.
Diffstat (limited to 'modules/gallery/helpers/block_manager.php')
| -rw-r--r-- | modules/gallery/helpers/block_manager.php | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/modules/gallery/helpers/block_manager.php b/modules/gallery/helpers/block_manager.php index e7247edc..4bd649c2 100644 --- a/modules/gallery/helpers/block_manager.php +++ b/modules/gallery/helpers/block_manager.php @@ -28,7 +28,7 @@ class block_manager_Core {    static function add($location, $module_name, $block_id) {      $blocks = block_manager::get_active($location); -    $blocks[mt_rand()] = array($module_name, $block_id); +    $blocks[random::int()] = array($module_name, $block_id);      block_manager::set_active($location, $blocks);    } | 
