gavinchou commented on code in PR #50314:
URL: https://github.com/apache/doris/pull/50314#discussion_r2055142685
##########
cloud/src/meta-service/meta_service_txn.cpp:
##########
@@ -2514,6 +2514,23 @@ void commit_txn_with_sub_txn(const CommitTxnRequest*
request, CommitTxnResponse*
response->mutable_txn_info()->CopyFrom(txn_info);
} // end commit_txn_with_sub_txn
+static bool fuzzy_random() {
+ std::mt19937 gen {std::random_device {}()};
+ auto p = 0.5;
+ std::bernoulli_distribution bd {p};
+ if (bd(gen)) {
+ return true;
+ }
+ return false;
Review Comment:
```suggestion
return bd(gen);
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]