bump length of subdomain to 10

This commit is contained in:
Roman Shtylman
2013-12-31 15:33:43 -05:00
parent 3c863b3187
commit 54ba65ba1f
2 changed files with 6 additions and 5 deletions

View File

@@ -1,12 +1,13 @@
// all url safe
// can't use uppercase because hostnames are lowercased
var chars = 'abcdefghijklmnopqrstuvwxyz';
var chars = 'abcdefghiklmnopqrstuvwxyz';
module.exports = function rand_id() {
var randomstring = '';
for (var i=0; i<4; ++i) {
for (var i=0; i<10; ++i) {
var rnum = Math.floor(Math.random() * chars.length);
randomstring += chars[rnum];
}
return randomstring;
}