plugeth/core/bloombits
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
..
doc.go core, eth: clean up bloom filtering, add some tests 2017-09-06 11:14:19 +03:00
generator_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
generator.go core/bloombits: faster generator (#21625) 2020-10-06 16:34:29 +03:00
matcher_test.go Chore: Minimal gramatical errors (signleton -> singleton) (#25057) 2022-06-10 18:47:06 +03:00
matcher.go all: fix spelling mistakes (#25961) 2022-10-11 09:37:00 +02:00
scheduler_test.go core/bloombits: speed up windows-test (#25844) 2022-10-06 11:41:07 +02:00
scheduler.go core, eth: clean up bloom filtering, add some tests 2017-09-06 11:14:19 +03:00