mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-10 16:16:47 +00:00
each goroutine needs its own random source.
caught by the race detector.
This commit is contained in:
parent
bd7a100ebb
commit
ba937630d0
@ -499,9 +499,10 @@ func (s *server) seedFromDNS() {
|
||||
return
|
||||
}
|
||||
|
||||
randSource := mrand.New(mrand.NewSource(time.Now().UnixNano()))
|
||||
for _, seeder := range activeNetParams.dnsSeeds {
|
||||
go func(seeder string) {
|
||||
randSource := mrand.New(mrand.NewSource(time.Now().UnixNano()))
|
||||
|
||||
seedpeers, err := dnsDiscover(seeder)
|
||||
if err != nil {
|
||||
discLog.Infof("DNS discovery failed on seed %s: %v", seeder, err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user