Merge pull request #2819 from bradarv90/develop

Fix for #2809
pull/2827/head
John McLear 2015-11-02 13:09:42 +00:00
commit d05fa6d97e
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ exports.createAuthor = function(name, callback)
var author = "a." + randomString(16);
//create the globalAuthors db entry
var authorObj = {"colorId" : Math.floor(Math.random()*32), "name": name, "timestamp": new Date().getTime()};
var authorObj = {"colorId" : Math.floor(Math.random()*(exports.getColorPalette().length)), "name": name, "timestamp": new Date().getTime()};
//set the global author db entry
db.set("globalAuthor:" + author, authorObj);