go/doc/next/6-stdlib/99-minor/crypto/rsa/70924.md

5 lines
352 B
Markdown
Raw Normal View History

The random parameter to [GenerateKey], [GenerateMultiPrimeKey], and [EncryptPKCS1v15] is now ignored.
Instead, they now always use a secure source of cryptographically random bytes.
For deterministic testing, use the new [testing/cryptotest.SetGlobalRandom] function.
The new GODEBUG setting `cryptocustomrand=1` temporarily restores the old behavior.