Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created December 2, 2014 00:34
Show Gist options
  • Save nefftd/c5fa5ed3067ebdaf27c4 to your computer and use it in GitHub Desktop.
Save nefftd/c5fa5ed3067ebdaf27c4 to your computer and use it in GitHub Desktop.
local function genpass(len)
local amin,amax = unpack(ASCII_PRINTABLE)
local pass = {}
for i = 1,len do
pass[i] = math.random(amin,amax)
end
return string.char(unpack(pass))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment