mazeseed: Update comment
This commit is contained in:
parent
f3d4d46c43
commit
9a6b43c87d
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ end
|
||||||
-- the output of tonumber() is returned.
|
-- the output of tonumber() is returned.
|
||||||
-- Otherwise, the string is converted to a number via a simple hashing algorithm
|
-- Otherwise, the string is converted to a number via a simple hashing algorithm
|
||||||
-- (caution: certainlly NOT crypto-secure!).
|
-- (caution: certainlly NOT crypto-secure!).
|
||||||
|
-- @param {string} str The string to convert.
|
||||||
-- @source https://stackoverflow.com/a/2624210/1460422
|
-- @source https://stackoverflow.com/a/2624210/1460422 The idea came from here
|
||||||
function M.makeseed(str)
|
function M.makeseed(str)
|
||||||
if type(str) == "number" then return str end
|
if type(str) == "number" then return str end
|
||||||
if tonumber(str) ~= nil then return tonumber(str) end
|
if tonumber(str) ~= nil then return tonumber(str) end
|
||||||
|
|
Loading…
Reference in a new issue