plugeth/event
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
..
event_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
event.go event, whisper/whisperv6: use defer where possible (#20940) 2020-04-28 10:53:08 +02:00
example_feed_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_scope_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_subscription_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_test.go core, eth, event, miner, xeth: fix event post / subscription race 2015-10-12 16:22:03 +03:00
feed_test.go all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
feed.go event: add missing unlock before panic (#20653) 2020-02-12 10:33:31 +01:00
feedof_test.go event: add FeedOf[T] (#26310) 2022-12-09 16:20:46 +01:00
feedof.go event: add FeedOf[T] (#26310) 2022-12-09 16:20:46 +01:00
subscription_test.go event: add ResubscribeErr (#22191) 2021-01-21 13:47:38 +01:00
subscription.go event: add ResubscribeErr (#22191) 2021-01-21 13:47:38 +01:00