plugeth/p2p
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
..
discover all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
dnsdisc p2p/dnsdisc: fix tests with Go 1.20 (#26690) 2023-02-14 15:58:43 +02:00
enode all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
enr p2p/discover: improve discv5 NODES response packing (#26033) 2022-11-07 19:19:02 +01:00
msgrate all: fix spelling mistakes (#25961) 2022-10-11 09:37:00 +02:00
nat p2p/nat: handle responses with alternative port in NAT-PMP (#26321) 2022-12-07 16:22:04 +01:00
netutil all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
nodestate all: fix docstrings 2022-10-04 09:18:02 +02:00
rlpx all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
simulations all: use http package to replace http method names (#26535) 2023-01-24 11:12:25 +02:00
tracker all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
dial_test.go
dial.go common/mclock: add Alarm (#26333) 2023-01-03 12:10:48 +01:00
message_test.go
message.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
metrics.go
peer_error.go p2p: use errors.Is for error comparison (#24882) 2022-06-07 17:27:21 +02:00
peer_test.go
peer.go p2p: use errors.Is for error comparison (#24882) 2022-06-07 17:27:21 +02:00
protocol.go
server_test.go
server.go cmd/geth, p2p: add support for custom discovery UDP port (#24979) 2022-06-28 17:25:47 +02:00
transport_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
transport.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
util_test.go
util.go all: assign zero after resize in implementations of heap.Interface (#26296) 2022-12-05 13:49:54 +01:00