plugeth/miner
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
..
stress all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
miner_test.go miner, cmd, eth: require explicit etherbase address (#26413) 2023-01-20 11:26:01 -05:00
miner.go miner, cmd, eth: require explicit etherbase address (#26413) 2023-01-20 11:26:01 -05:00
payload_building_test.go eth/catalyst,miner: include withdrawals in payload id calculation (#26554) 2023-02-07 13:16:53 -05:00
payload_building.go eth/catalyst,miner: include withdrawals in payload id calculation (#26554) 2023-02-07 13:16:53 -05:00
unconfirmed_test.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
unconfirmed.go all: replace RWMutex with Mutex in places where RLock is not used (#21622) 2020-10-13 10:58:41 +02:00
worker_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
worker.go all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00