Created
December 2, 2014 00:34
-
-
Save nefftd/c5fa5ed3067ebdaf27c4 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 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