Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
2 years ago
..
account.go
core/state/snapshot: implement storage iterator ( #20971 )
5 years ago
context.go
core/state/snapshot: detect and clean up dangling storage snapshot in generation ( #24811 )
3 years ago
conversion.go
all: prepare for path-based trie storage ( #26603 )
2 years ago
difflayer.go
all: remove duplicate word in comments ( #25618 )
2 years ago
difflayer_test.go
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
disklayer.go
snapshot, trie: fixed typos, mostly in snapshot pkg ( #22133 )
4 years ago
disklayer_test.go
core/rawdb: simplify TestDiskSeek to use memorydb ( #25182 )
2 years ago
generate.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
generate_test.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
holdable_iterator.go
all: update license headers and AUTHORS from git history ( #24947 )
2 years ago
holdable_iterator_test.go
all: update license headers and AUTHORS from git history ( #24947 )
2 years ago
iterator.go
core: fix typo in iterator.go ( #23502 )
3 years ago
iterator_binary.go
snapshot, trie: fixed typos, mostly in snapshot pkg ( #22133 )
4 years ago
iterator_fast.go
all: fix spelling mistakes ( #25961 )
2 years ago
iterator_test.go
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
journal.go
all: clean up the configs for pruner and snapshotter ( #22396 )
2 years ago
metrics.go
all: fix spelling mistakes ( #25961 )
2 years ago
snapshot.go
all: prepare for path-based trie storage ( #26603 )
2 years ago
snapshot_test.go
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
sort.go
core: fix broken tests due to API changes + linter
5 years ago
utils.go
cmd/geth, core/state/snapshot: rework journal loading, implement account-check ( #24765 )
2 years ago