wesm commented on a change in pull request #7442:
URL: https://github.com/apache/arrow/pull/7442#discussion_r440565678
##########
File path: cpp/src/arrow/testing/random.cc
##########
@@ -84,7 +84,7 @@ std::shared_ptr<Array> RandomArrayGenerator::Boolean(int64_t
size, double probab
BufferVector buffers{2};
// Need 2 distinct generators such that probabilities are not shared.
- GenOpt value_gen(seed(), 0, 1, probability);
+ GenOpt value_gen(seed(), 0, 1, 1 - probability);
Review comment:
@pitrou or @fsaintjacques could you please confirm this change
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]