go-pulse/p2p/netutil
Martin Holst Swende 4d3525610e
all: remove deprecated uses of math.rand (#26710)
This PR is a (superior) alternative to https://github.com/ethereum/go-ethereum/pull/26708, it handles deprecation, primarily two specific cases. 

`rand.Seed` is typically used in two ways
- `rand.Seed(time.Now().UnixNano())` -- we seed it, just to be sure to get some random, and not always get the same thing on every run. This is not needed, with global seeding, so those are just removed. 
- `rand.Seed(1)` this is typically done to ensure we have a stable test. If we rely on this, we need to fix up the tests to use a deterministic prng-source. A few occurrences like this has been replaced with a proper custom source. 

`rand.Read` has been replaced by `crypto/rand`.`Read` in this PR.
2023-02-16 14:36:58 -05:00
..
addrutil.go all: update author list and licenses 2019-07-22 12:17:27 +03:00
error_test.go p2p/netutil: minor code cosmetic 2022-07-25 12:52:49 +03:00
error.go p2p/discover: implement v5.1 wire protocol (#21647) 2020-10-14 12:28:17 +02:00
iptrack_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
iptrack.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
net_test.go p2p, p2p/discover: misc connectivity improvements (#16069) 2018-02-12 14:36:09 +02:00
net.go p2p/netutil: fix staticcheck warning (#20315) 2019-11-19 11:17:41 +02:00
toobig_notwindows.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
toobig_windows.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00