Skip to content

Commit

Permalink
avoid collisions of generated parameter IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik committed May 13, 2016
1 parent 85f807d commit ab545fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CoverageCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class CoverageCollection {
for (let key of Object.keys(rootParams)) {
let param = rootParams[key]
if (!param.id) {
param.id = new Date().getTime().toString()
param.id = Math.round(new Date().getTime() * Math.random()).toString()
}
}

Expand Down

0 comments on commit ab545fb

Please sign in to comment.