Skip to content

Commit

Permalink
fix uid method in core/server/utils/index.js to return a string which…
Browse files Browse the repository at this point in the history
… length is equal to len argument (#8025)

closes #7998
  • Loading branch information
sahand12 authored and kirrg001 committed Mar 3, 2017
1 parent b79df0e commit 481154a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
}

Expand Down

0 comments on commit 481154a

Please sign in to comment.