plugeth/core/txpool
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
..
journal.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
list_test.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
list.go all: assign zero after resize in implementations of heap.Interface (#26296) 2022-12-05 13:49:54 +01:00
noncer.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
txpool_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
txpool.go common/prque: generic priority queue (#26290) 2023-02-09 13:03:54 +02:00