2015-09-29 15:46:31 +02:00
|
|
|
var hash = require('sha256');
|
|
|
|
var secretKey = require('../private.js').microSecretKey;
|
2015-10-01 15:24:32 +02:00
|
|
|
var campaignId = require('../private.js').microCampaignId;
|
2015-09-29 15:46:31 +02:00
|
|
|
|
2015-10-01 15:24:32 +02:00
|
|
|
module.exports = function(workerId) {
|
2015-09-29 15:46:31 +02:00
|
|
|
|
|
|
|
return 'mw-' + hash(campaignId + workerId + secretKey);
|
|
|
|
|
|
|
|
}
|