Skip to content

Instantly share code, notes, and snippets.

View yunyyyun's full-sized avatar
🤩

mengyun yunyyyun

🤩
View GitHub Profile
@yunyyyun
yunyyyun / hash.lua
Last active August 23, 2017 07:21
一种均匀散列方法(hash)
g_HashTable = 0
--创建hash表
function createHashTable()
local tb = {};
local _insert = function(k,v)
if k==0 then
k=1;
end
for i = k,k+999,1 do
if i>1000 then