diff --git a/node_modules/c9/randomchars.js b/node_modules/c9/randomchars.js new file mode 100644 index 00000000..0aedac95 --- /dev/null +++ b/node_modules/c9/randomchars.js @@ -0,0 +1,14 @@ +function getRandomChars(len) { + var text = ""; + if (!len) len = 5; + var possible = "abcdefghijklmnopqrstuvwxyz0123456789"; + + for (var i=0; i < len; i++) { + text += possible.charAt(Math.floor(Math.random() * possible.length)); + } + + return text; +} + +module.exports = getRandomChars; +