From eda83debfa6284ba294169c8acd4a8794441692d Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 27 Jun 2007 16:12:07 +0000 Subject: [PATCH] drop unnecessary mt_rand() call, found by Tomas Kuliavas git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12482 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- themes/spice_of_life_dark.php | 6 ------ themes/spice_of_life_lite.php | 6 ------ 2 files changed, 12 deletions(-) diff --git a/themes/spice_of_life_dark.php b/themes/spice_of_life_dark.php index dc14f2cd..af9050c2 100755 --- a/themes/spice_of_life_dark.php +++ b/themes/spice_of_life_dark.php @@ -25,12 +25,6 @@ include_once(SM_PATH . 'functions/strings.php'); /** seed the random number generator **/ sq_mt_randomize(); -/** light(1) or dark(0) background? **/ -$bg = mt_rand(0,1); - -/** range delimiter **/ -$bgrd = $bg * 128; - for ($i = 0; $i <= 15; $i++) { /** background/foreground toggle **/ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { diff --git a/themes/spice_of_life_lite.php b/themes/spice_of_life_lite.php index ea520c15..71a90868 100755 --- a/themes/spice_of_life_lite.php +++ b/themes/spice_of_life_lite.php @@ -25,12 +25,6 @@ include_once(SM_PATH . 'functions/strings.php'); /** seed the random number generator **/ sq_mt_randomize(); -/** light(1) or dark(0) background? **/ -$bg = mt_rand(0,1); - -/** range delimiter **/ -$bgrd = $bg * 128; - for ($i = 0; $i <= 15; $i++) { /** background/foreground toggle **/ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { -- 2.25.1