Skip to content

Commit

Permalink
chore: Fix invalid random log id (#11076)
Browse files Browse the repository at this point in the history
Calling `LogId.random` would sometimes return an invalid instance.
Spotted by @charlielye.
  • Loading branch information
spalladino authored Jan 6, 2025
1 parent 7da7f2b commit b1b67b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/circuit-types/src/logs/log_id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class LogId {

static random() {
return new LogId(
Math.floor(Math.random() * 1000),
Math.floor(Math.random() * 1000) + 1,
Math.floor(Math.random() * 1000),
Math.floor(Math.random() * 100),
);
Expand Down

0 comments on commit b1b67b0

Please sign in to comment.