Skip to content

Commit

Permalink
fix: TraceId generation regression (non-random trace ids) (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyo authored Jan 5, 2024
1 parent cb23dbd commit 8767f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/ids/unique-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function generateRandomHexString (length) {

const chars = []
for (var i = 0; i < length; i++) {
chars.push(getRandomValue(randomValueTable, ++randomValueIndex).toString(16))
chars.push(getRandomValue(randomValueTable, randomValueIndex++).toString(16))
}
return chars.join('')
}
Expand Down

0 comments on commit 8767f69

Please sign in to comment.