Skip to content

Commit

Permalink
Increase id entropy - Fixes sebbo2002#200
Browse files Browse the repository at this point in the history
  • Loading branch information
janrg committed Jul 27, 2020
1 parent 425e7e8 commit 46919f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ICalCategory = require('./category');
class ICalEvent {
constructor (data, _calendar) {
this._data = {
id: ('0000' + (Math.random() * Math.pow(36, 4) << 0).toString(36)).substr(-4),
id: ('0000000000' + Math.floor(Math.random() * Math.pow(36, 10) << 0).toString(36)).substr(-10),
sequence: 0,
start: null,
end: null,
Expand Down

0 comments on commit 46919f2

Please sign in to comment.