op-geth/crypto
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
..
blake2b all: more linters (#24783) 2022-06-13 16:24:45 +02:00
bls12381 crypto/bls12381: use worst case scalar for input to G1/G2 mul benchmarks (#26447) 2023-01-10 03:16:17 -05:00
bn256 all: more linters (#24783) 2022-06-13 16:24:45 +02:00
ecies all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00
secp256k1 build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
signify all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
crypto.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
crypto_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
signature_cgo.go all: fix spelling mistakes (#25961) 2022-10-11 09:37:00 +02:00
signature_nocgo.go crypto: use btcec/v2 for no-cgo (#24533) 2022-03-16 14:23:14 +01:00
signature_test.go crypto: ensure that VerifySignature rejects malleable signatures (#15708) 2017-12-20 14:30:00 +02:00