Created
December 2, 2014 01:06
-
-
Save nefftd/378f1edd03a999d99d3f 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 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