projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8575fac
)
libs/core: use luci.template.parser.hash() instead of lmo.hash()
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 25 Nov 2012 19:18:10 +0000
(19:18 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 25 Nov 2012 19:18:10 +0000
(19:18 +0000)
libs/core/luasrc/model/firewall.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/model/firewall.lua
b/libs/core/luasrc/model/firewall.lua
index 0c574e0f756b3b22ac23ba01984b5f44b05bf866..a9f6fdb7fc2c4b87d39657b6cd85bb17b89457d3 100644
(file)
--- 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)