plugeth/ethdb
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
..
dbtest all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
leveldb ethdb: add benchmark test suite (#26659) 2023-02-10 04:35:00 -05:00
memorydb all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
pebble ethdb/pebble: Fix MemTableStopWritesThreshold (#26692) 2023-02-15 03:27:52 -05:00
remotedb cmd/geth, cmd/utils: geth attach with custom headers (#25829) 2022-09-30 13:50:25 +02:00
batch.go core, ethdb, tests, trie: implement NewBatchWithSize API for batcher (#24392) 2022-02-15 15:15:13 +02:00
database.go cmd, core, ethdb, node: move chain freezer one folder deeper (#25487) 2022-08-08 12:08:36 +03:00
iterator.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
snapshot.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00