mazeseed: Update comment

This commit is contained in:
Starbeamrainbowlabs 2020-09-28 01:41:49 +01:00
parent f3d4d46c43
commit 9a6b43c87d
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -14,8 +14,8 @@ end
-- the output of tonumber() is returned.
-- Otherwise, the string is converted to a number via a simple hashing algorithm
-- (caution: certainlly NOT crypto-secure!).
-- @source https://stackoverflow.com/a/2624210/1460422
-- @param {string} str The string to convert.
-- @source https://stackoverflow.com/a/2624210/1460422 The idea came from here
function M.makeseed(str)
if type(str) == "number" then return str end
if tonumber(str) ~= nil then return tonumber(str) end