4d3525610e
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. |
||
---|---|---|
.. | ||
pruner | ||
snapshot | ||
access_list.go | ||
database.go | ||
dump.go | ||
iterator_test.go | ||
iterator.go | ||
journal.go | ||
metrics.go | ||
state_object_test.go | ||
state_object.go | ||
state_test.go | ||
statedb_test.go | ||
statedb.go | ||
sync_test.go | ||
sync.go | ||
transient_storage.go | ||
trie_prefetcher_test.go | ||
trie_prefetcher.go |