go-ethereum/accounts/keystore
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
..
testdata all: replace passPHRASE with passWORD in user interactions (#19932) 2019-08-12 12:00:38 +03:00
account_cache.go all: use github.com/deckarep/golang-set/v2 (generic set) (#26159) 2022-11-14 15:16:52 +01:00
account_cache_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
file_cache.go all: use github.com/deckarep/golang-set/v2 (generic set) (#26159) 2022-11-14 15:16:52 +01:00
key.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
keystore.go accounts/keystore: faster tests (#25827) 2022-10-12 10:53:01 +02:00
keystore_test.go accounts/keystore: faster tests (#25827) 2022-10-12 10:53:01 +02:00
passphrase.go all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00
passphrase_test.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
plain.go accounts/keystore: delete the redundant keystore in filename (#17930) 2018-11-29 12:04:56 +02:00
plain_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
presale.go accounts/keystore: use github.com/google/uuid (#22217) 2021-02-26 15:28:34 +01:00
wallet.go accounts/keystore: add missing function doc for SignText (#21914) 2020-11-30 09:03:24 +01:00
watch.go accounts/keystore: replace inotify with fsnotify (#26176) 2022-11-14 12:38:10 +01:00
watch_fallback.go accounts/keystore: faster tests (#25827) 2022-10-12 10:53:01 +02:00