0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

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)]);
}