Skip to content

Commit

Permalink
feat: Increase id entropy - Fixes #200 (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
janrg authored Jul 28, 2020
1 parent 9e13b50 commit 6711b0a
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 6711b0a

Please sign in to comment.