Skip to content

Instantly share code, notes, and snippets.

@dchest
Created April 11, 2014 09:41
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 dchest/10454036 to your computer and use it in GitHub Desktop.
Save dchest/10454036 to your computer and use it in GitHub Desktop.
(function() {
var ps = {};
for (var i = 0; i < 1000000; i++) {
var p = GPW.pronounceable(7);
if (p.length != 8) {
console.log("#"+i+" bad length: ", p);
}
if (ps[p]) {
console.log("#"+i+" collission!", p);
return;
}
ps[p] = true;
if (i % 1000 === 0) console.log(i);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment