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
..
committer.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
database.go
all: remove database commit callback, rework noderesolver ( #26637 )
2 years ago
database_test.go
core, eth, les, tests, trie: abstract node scheme ( #25532 )
2 years ago
encoding.go
trie: use stacktrie for Derivesha operation ( #21407 )
4 years ago
encoding_test.go
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
errors.go
all: introduce trie owner notion ( #24750 )
2 years ago
hasher.go
build: upgrade to go 1.19 ( #25726 )
2 years ago
iterator.go
all: remove database commit callback, rework noderesolver ( #26637 )
2 years ago
iterator_test.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
node.go
trie: improve node rlp decoding performance ( #25357 )
2 years ago
node_enc.go
rlp, trie: faster trie node encoding ( #24126 )
3 years ago
node_test.go
trie: improve node rlp decoding performance ( #25357 )
2 years ago
nodeset.go
core/rawdb: refactor db inspector for extending multiple ancient store ( #25896 )
2 years ago
preimages.go
core, trie, eth, cmd: rework preimage store ( #25287 )
2 years ago
proof.go
all: fix spelling mistakes ( #25961 )
2 years ago
proof_test.go
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
secure_trie.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
secure_trie_test.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
stacktrie.go
core, eth, les, tests, trie: abstract node scheme ( #25532 )
2 years ago
stacktrie_test.go
all: remove database commit callback, rework noderesolver ( #26637 )
2 years ago
sync.go
common/prque: generic priority queue ( #26290 )
2 years ago
sync_test.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
trie.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
trie_id.go
cmd, core, eth, les, light: track deleted nodes ( #25757 )
2 years ago
trie_reader.go
cmd, core, eth, les, light: track deleted nodes ( #25757 )
2 years ago
trie_test.go
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
util_test.go
core/state, trie: remove unused error-return from trie Commit operation ( #26641 )
2 years ago
utils.go
trie: wrap deletion in case trie.root is nil ( #26365 )
2 years ago