plugeth/consensus/ethash
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
..
algorithm_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
algorithm.go consensus/ethash: fix typo (#26016) 2022-11-01 14:39:39 +01:00
api.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
consensus_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
consensus.go all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00
difficulty.go go.mod: upgrade to github.com/holiman/uint256 v1.2.0 (#22745) 2021-05-10 12:29:33 +02:00
ethash_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
ethash.go all: remove remaining uses of untyped golang-lru (#26194) 2022-11-17 11:15:28 +01:00
mmap_help_linux.go consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
mmap_help_other.go consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
sealer_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
sealer.go all: use http package to replace http method names (#26535) 2023-01-24 11:12:25 +02:00