-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuzzMap calls in VectorFuzzer yield inconsistent results across platf…
…orms (#3561) Summary: Pull Request resolved: #3561 The order arguments are evaluated in a function call in C++ is not specified. This leads to issues when we call functions that invoke our RNG in the VectorFuzzer in two arguments, like these fuzzMap calls where we call one such function for the keys and one for the values. This came up when trying to repro #3419 In the CircleCI environment the values were generated before the keys when calling fuzzMap, while in my local environment the keys were generated before the values. I was getting different results and unable to reproduce the issue. Constructing the arguments outside the function call allows us to control the order in which their invoked. Reviewed By: bikramSingh91, kagamiori Differential Revision: D42178884 fbshipit-source-id: 15bc02b9b275bc0914c1538754c7260a01406090
- Loading branch information
1 parent
882cba8
commit 5808798
Showing
2 changed files
with
23 additions
and
15 deletions.
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