mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
Go 1.24 provides the helpful rand.Text() function, returning a base32-encoded string containing at least 128 bits of randomness. We should make use of it everywhere it makes sense to do so, if only to not having to think about much entropy do we need for each cases, and just trust the go crypto team. Also, rand.Read() can't fail, so no need to check its return value: https://pkg.go.dev/crypto/rand#Read This behaviour is consistent with go's standard library itself. |
||
---|---|---|
.. | ||
crypto.go |