Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/node/db/AuthorManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down