Created
February 5, 2015 23:32
-
-
Save nefftd/9ef1781f647e3efa970e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ASCII_PRINTABLE = {33,126} | |
local function genpass(len) | |
local amin,amax = (table.unpack or unpack)(ASCII_PRINTABLE) | |
local pass = {} | |
for i = 1,len do | |
pass[i] = math.random(amin,amax) | |
end | |
return string.char((table.unpack or unpack)(pass)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment