fix uid method in core/server/utils/index.js to return a string which length is equal to len argument (#8025)

closes #7998
This commit is contained in:
sahand12 2017-03-03 18:05:08 +03:30 committed by Katharina Irrgang
parent b79df0e89a
commit 481154a55b

View File

@ -48,7 +48,7 @@ utils = {
charlen = chars.length,
i;
for (i = 1; i < len; i = i + 1) {
for (i = 0; i < len; i = i + 1) {
buf.push(chars[getRandomInt(0, charlen - 1)]);
}