libs/core: use luci.template.parser.hash() instead of lmo.hash()
This commit is contained in:
parent
8575facc25
commit
bb276a7c7b
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ limitations under the License.
|
||||||
local type, pairs, ipairs, table, luci, math
|
local type, pairs, ipairs, table, luci, math
|
||||||
= 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 utl = require "luci.util"
|
||||||
local uci = require "luci.model.uci"
|
local uci = require "luci.model.uci"
|
||||||
|
|
||||||
|
@ -478,7 +478,7 @@ function zone.get_color(self)
|
||||||
elseif self and self:name() == "wan" then
|
elseif self and self:name() == "wan" then
|
||||||
return "#f09090"
|
return "#f09090"
|
||||||
elseif self then
|
elseif self then
|
||||||
math.randomseed(lmo.hash(self:name()))
|
math.randomseed(tpl.hash(self:name()))
|
||||||
|
|
||||||
local r = math.random(128)
|
local r = math.random(128)
|
||||||
local g = math.random(128)
|
local g = math.random(128)
|
||||||
|
|
Loading…
Reference in a new issue