Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:RemiLib
(view source)
Revision as of 05:37, 25 October 2015
55 bytes added
,
9 years ago
no edit summary
Line 22:
Line 22:
function p.hashString(string)
function p.hashString(string)
local hash = 0
local hash = 0
+
if string == nil or string == "" then
+
return 0
+
end
for i = 1, #string do
for i = 1, #string do
local letter = string:sub(i,i)
local letter = string:sub(i,i)
Remi Scarlet
2,922
edits