diff --git a/bin/convert.js b/bin/convert.js index 69bb2cbc7..82e0f7579 100644 --- a/bin/convert.js +++ b/bin/convert.js @@ -349,7 +349,7 @@ function convertPad(padId, callback) //generate new author values var authorID = "a." + randomString(16); - var authorColorID = authors[i].colorId || Math.floor(Math.random()*32); + var authorColorID = authors[i].colorId || Math.floor(Math.random()*(exports.getColorPalette().length)); var authorName = authors[i].name || null; //overwrite the authorID of the attribute pool