Skip to content

Add a RandomIteration utility#8358

Merged
tlively merged 2 commits intomainfrom
random-iteration
Feb 23, 2026
Merged

Add a RandomIteration utility#8358
tlively merged 2 commits intomainfrom
random-iteration

Conversation

@tlively
Copy link
Copy Markdown
Member

@tlively tlively commented Feb 21, 2026

This is a debugging aid for investigating determinism bugs where different iteration orders on unordered containers produce different output. These bugs usually manifest as different systems producing different output for the same input, but it is hard to debug across different systems. Using these utilities to wrap suspect containers can
help reproduce bugs across different executions on the same system.

This is a debugging aid for investigating determinism bugs where different iteration orders on unordered containers produce different output. These bugs usually manifest as different systems producing different output for the same input, but it is hard to debug across different systems. Using these utilities to wrap suspect containers can
help reproduce bugs across different executions on the same system.
@tlively tlively requested a review from kripken February 21, 2026 02:22
Comment thread src/support/random_iteration.h Outdated
Co-authored-by: Alon Zakai <azakai@google.com>
@tlively tlively enabled auto-merge (squash) February 23, 2026 17:41
@tlively tlively merged commit 3d6dfef into main Feb 23, 2026
17 checks passed
@tlively tlively deleted the random-iteration branch February 23, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants