decred / dcrd

Decred daemon in Go (golang).
https://decred.org
ISC License
731 stars 289 forks source link

multi: Use new crypto/rand module #3373

Closed jrick closed 1 month ago

jrick commented 1 month ago

This change requires, imports, and converts non-test code across the dcrd repo, replacing existing usage of math/rand, stdlib crypto/rand, wire.RandomUint64, and other instances of Fisher-Yates shuffling.

Exceptions to the non-test code have been made for wire (stdlib used by RandomUint64) and secp256k1.