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

5 lines
297 B
Markdown
Raw Normal View History

The random parameter to [Prime] is now ignored.
Instead, it now always uses 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.