CoolIceV opened a new issue, #1957:
URL: https://github.com/apache/dubbo-go/issues/1957

   **What happened:**
   I found that rand.Seed() is called every time the p2c algorithm is invoked, 
and may be called concurrently. This may result in always getting the same 
random number within second.
   
   
https://github.com/apache/dubbo-go/blob/b7e348319f82444e18ecda284e20656d7ed3b861/cluster/loadbalance/p2c/loadbalance.go#L75-L84
   
   **What you expected to happen:**
   rand.Seed() only called once when init the p2c loadbalancer.
   
   **How to reproduce it (as minimally and precisely as possible):**
   
   **Anything else we need to know?:**
   


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