Include random element to genUuid

This commit is contained in:
Tony Garnock-Jones 2018-11-06 10:58:42 +00:00
parent 077e5a5361
commit 82ffa7b57c
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ module.exports.bootModule = Ground.bootModule;
// These aren't so much "Universal" as they are "VM-wide-unique".
let uuidIndex = 0;
let uuidPrefix = '__@syndicate__' + RandomID.randomId(8);
let uuidInstance = RandomID.randomId(8);
module.exports.genUuid = function (prefix) {
return (prefix || uuidPrefix) + '_' + uuidIndex++;
return (prefix || '__@syndicate') + '_' + uuidInstance + '_' + uuidIndex++;
};