gavinchou commented on code in PR #33428:
URL: https://github.com/apache/doris/pull/33428#discussion_r1557321399


##########
cloud/src/meta-service/meta_service.h:
##########
@@ -631,8 +633,8 @@ class MetaServiceProxy final : public MetaService {
             TEST_SYNC_POINT("MetaServiceProxy::call_impl:2");
             if (retry_times == 0) {
                 // the first retry, add random drift.
-                auto rng = std::default_random_engine {static_cast<uint64_t>(
-                        
std::chrono::steady_clock::now().time_since_epoch().count())};
+                duration seed = 
duration_cast<nanoseconds>(steady_clock::now().time_since_epoch());
+                std::default_random_engine 
rng(static_cast<uint64_t>(seed.count()));

Review Comment:
   just mt19937?



-- 
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]

Reply via email to