Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created December 15, 2012 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/4299363 to your computer and use it in GitHub Desktop.
Save isaacs/4299363 to your computer and use it in GitHub Desktop.
var x = new Buffer(26 * 1024 * 1024);
var a = 'a'.charCodeAt(0);
var z = 'z'.charCodeAt(0);
// 1k of alphabets
for (var i = 0; i < x.length; i ++) {
x[i] = i % (z-a+1) + a;
}
console.error(x.toString());
process.exit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment