issue-2 Resolves #2 #4

Merged
juhn merged 2 commits from issue-2 into main 2025-08-27 13:11:32 +02:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit b01b0d4eb5 - Show all commits

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
function hash(str)
local hash = 0
for i = 1, #str do
hash = (hash * 31 + string.byte(str, i)) % 65536
end
return string.format("%04X", hash)
end
+1 -8
View File
@@ -13,14 +13,7 @@ local function split(str, divider)
return t
end
local function hash(str)
local hash = 0
for i = 1, #str do
hash = (hash * 31 + string.byte(str, i)) % 65536
end
return string.format("%04X", hash)
end
dofile(dir..'hash.lua')
local function check_for_outdated_sessions()
local expired = 0