-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
139104: metamorphic: use globalSeed from `randutil.NewTestRand` r=stevendanna,RaduBerinde,herkolategan a=srosenberg A minor quality of life improvement to ensure metamorphic constants are derived from the globalSeed. This makes it possible to reproduce both the metamoprhic constants and the individual test's rng values, from `COCKROACH_RANDOM_SEED`. We also log the seed, when metamoprhic constants are enabled. As of this change, we get a message of this form, logged to `stderr`, ``` metamorphic: use COCKROACH_RANDOM_SEED=9076506593373491438 for reproduction ``` Epic: none Release note: None Co-authored-by: Stan Rosenberg <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters