op-geth/les/utils
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
..
exec_queue.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
exec_queue_test.go les: create utilities as common package (#20509) 2020-03-31 17:17:24 +02:00
expiredvalue.go all: fix docstrings 2022-10-04 09:18:02 +02:00
expiredvalue_test.go les: implement new les fetcher (#20692) 2020-07-28 18:02:35 +03:00
limiter.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
limiter_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
timeutils.go les, les/lespay/server: refactor client pool (#21236) 2020-09-14 22:44:20 +02:00
timeutils_test.go all: use AbsTime.Add instead of conversion (#25417) 2022-07-29 18:23:30 +02:00
weighted_select.go les/utils: UDP rate limiter (#21930) 2021-01-28 22:47:15 +01:00
weighted_select_test.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00