Skip to content

Commit

Permalink
Increased uniqueness of IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Midorina authored Jan 16, 2023
1 parent 347b64a commit 0df87b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/guest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const getId = require('../getId');
const prefix = 'sessionAccessId-';

function createId() {
return prefix + Date.now();
return prefix + (Math.random() * Date.now());
}

module.exports = function storageGuest(source, parent) {
Expand Down

0 comments on commit 0df87b6

Please sign in to comment.