justxuewei commented on code in PR #1958:
URL: https://github.com/apache/dubbo-go/pull/1958#discussion_r916436280


##########
cluster/loadbalance/p2c/loadbalance.go:
##########
@@ -44,6 +44,7 @@ var (
 )
 
 func init() {
+       rand.Seed(randSeed())

Review Comment:
   Well, the number of initializations of the rand seed is not a very strict 
limit. This PR looks good for me. BTW, I am saying that initialize the rand 
seed **globally**, instead of initialize that in `init()` function of each 
package, but it doesn't matter now.



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