op-geth/p2p/enode
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
..
idscheme.go all: fix docstrings 2022-10-04 09:18:02 +02:00
idscheme_test.go
iter.go p2p/enode: implement per-source timeout in FairMix (#25962) 2022-11-08 12:12:36 +01:00
iter_test.go p2p, p2p/enode: fix data races (#23434) 2021-08-24 12:22:56 +02:00
localnode.go p2p/enode: store local port number as uint16 (#23926) 2021-11-23 15:14:08 +01:00
localnode_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
node.go all: fix docstrings 2022-10-04 09:18:02 +02:00
node_test.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
nodedb.go all: fix docstrings 2022-10-04 09:18:02 +02:00
nodedb_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
urlv4.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
urlv4_test.go p2p/enode: mock DNS resolver in URL parsing test (#20252) 2019-11-07 16:40:37 +01:00