Advertisement
Guest User

bored2

a guest
Aug 29th, 2015
184
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 1 0
  1. local function hash(msg)
  2.   local num = ""
  3.   for i = 1, #msg do
  4.     local let = msg:sub(i,i):byte()
  5.     num = let <= 9  and num.."99"..let or let<=99 and num.."9"..let or num..let
  6.   end
  7.   math.randomseed(tonumber(num))
  8.   local hash = ""
  9.   for i = 1, 100 do
  10.     hash = hash..math.random(0,9)
  11.   end
  12.   return hash
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement