Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
2 years ago
..
discover
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
dnsdisc
p2p/dnsdisc: fix tests with Go 1.20 ( #26690 )
2 years ago
enode
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
enr
p2p/discover: improve discv5 NODES response packing ( #26033 )
2 years ago
msgrate
all: fix spelling mistakes ( #25961 )
2 years ago
nat
p2p/nat: handle responses with alternative port in NAT-PMP ( #26321 )
2 years ago
netutil
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
nodestate
all: fix docstrings
2 years ago
rlpx
all: update license headers and AUTHORS from git history ( #24947 )
3 years ago
simulations
all: use http package to replace http method names ( #26535 )
2 years ago
tracker
all: fix some typos ( #25551 )
2 years ago
dial.go
common/mclock: add Alarm ( #26333 )
2 years ago
dial_test.go
p2p: new dial scheduler ( #20592 )
5 years ago
message.go
build: upgrade to go 1.19 ( #25726 )
2 years ago
message_test.go
p2p: move rlpx into separate package ( #21464 )
4 years ago
metrics.go
eth/protocols, prp/tracker: add support for req/rep rtt tracking ( #22608 )
4 years ago
peer.go
p2p: use errors.Is for error comparison ( #24882 )
2 years ago
peer_error.go
p2p: use errors.Is for error comparison ( #24882 )
2 years ago
peer_test.go
p2p: move rlpx into separate package ( #21464 )
4 years ago
protocol.go
cmd/devp2p, p2p: dial using node iterator, discovery crawler ( #20132 )
5 years ago
server.go
cmd/geth, p2p: add support for custom discovery UDP port ( #24979 )
2 years ago
server_test.go
all: fix warning flagging the use of DeepEqual on error ( #23624 )
3 years ago
transport.go
all: update license headers and AUTHORS from git history ( #24947 )
3 years ago
transport_test.go
all: update license headers and AUTHORS from git history ( #24947 )
3 years ago
util.go
all: assign zero after resize in implementations of heap.Interface ( #26296 )
2 years ago
util_test.go
p2p: new dial scheduler ( #20592 )
5 years ago