op-geth/consensus
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
..
beacon all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00
clique all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00
ethash all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
misc params: make eip1559 params non-global (#25994) 2022-11-04 16:27:15 +01:00
consensus.go all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00
errors.go consensus/beacon: check that only the latest pow block is valid ttd block (#25187) 2022-06-29 15:13:19 +03:00
merger.go all: core rework for the merge transition (#23761) 2021-11-26 13:23:02 +02:00