summaryrefslogtreecommitdiffhomepage
path: root/libs/core
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-11-25 19:18:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-11-25 19:18:10 +0000
commitbb276a7c7b6f254f4b437a75f26b8bd01a807f22 (patch)
tree92a93b3e088ccbcaedad4880ceb770d29d959e6e /libs/core
parent8575facc2527791b76d834c9be57aa916bb7d239 (diff)
libs/core: use luci.template.parser.hash() instead of lmo.hash()
Diffstat (limited to 'libs/core')
-rw-r--r--libs/core/luasrc/model/firewall.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/core/luasrc/model/firewall.lua b/libs/core/luasrc/model/firewall.lua
index 0c574e0f75..a9f6fdb7fc 100644
--- a/libs/core/luasrc/model/firewall.lua
+++ b/libs/core/luasrc/model/firewall.lua
@@ -20,7 +20,7 @@ limitations under the License.
local type, pairs, ipairs, table, luci, math
= type, pairs, ipairs, table, luci, math
-local lmo = require "lmo"
+local tpl = require "luci.template.parser"
local utl = require "luci.util"
local uci = require "luci.model.uci"
@@ -478,7 +478,7 @@ function zone.get_color(self)
elseif self and self:name() == "wan" then
return "#f09090"
elseif self then
- math.randomseed(lmo.hash(self:name()))
+ math.randomseed(tpl.hash(self:name()))
local r = math.random(128)
local g = math.random(128)