cmcfarlen commented on code in PR #12624:
URL: https://github.com/apache/trafficserver/pull/12624#discussion_r2487591502


##########
include/tscore/Random.h:
##########
@@ -33,24 +33,28 @@ class Random
   static uint64_t
   random()
   {
-    std::uniform_int_distribution<uint64_t> dist{0, UINT64_MAX};
-    return dist(_engine);
+    return _state.int_dist(_state.engine);
   }
 
   static double
   drandom()
   {
-    std::uniform_real_distribution<double> dist{0, 1};
-    return dist(_engine);
+    return _state.real_dist(_state.engine);
   }
 
   static void
   seed(uint64_t s)
   {
-    _engine.seed(s);
+    _state.engine.seed(s);

Review Comment:
   Claude didn't suggest this until I mentioned it, but ultimately agrees this 
should be done.  Shame.



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

Reply via email to