Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function hash(msg)
- local num = ""
- for i = 1, #msg do
- local let = msg:sub(i,i):byte()
- num = let <= 9 and num.."99"..let or let<=99 and num.."9"..let or num..let
- end
- math.randomseed(tonumber(num))
- local hash = ""
- for i = 1, 100 do
- hash = hash..math.random(0,9)
- end
- return hash
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement