Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created December 2, 2014 01:06
Show Gist options
  • Select an option

  • Save nefftd/378f1edd03a999d99d3f to your computer and use it in GitHub Desktop.

Select an option

Save nefftd/378f1edd03a999d99d3f to your computer and use it in GitHub Desktop.
local MAX_UNPACK_SIZE = 500000
function bigger_cleanear_jenna(len)
local string = {}
local chunk = {}
local n = 1
local chunk_length
repeat
chunk_length = math.min(len,MAX_UNPACK_SIZE)
for i = 1,chunk_length do
chunk[i] = math.random(33,126)
end
string[n] = string.char(unpack(chunk,1,chunk_length))
n = n + 1
len = len - chunk_length
until len < 1
return table.concat(string)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment