}
boring.UnreachableExceptTests()
- // Get min(log2(q) / 2, 256) bits of entropy from rand.
- entropylen := (priv.Curve.Params().BitSize + 7) / 16
- if entropylen > 32 {
- entropylen = 32
- }
- entropy := make([]byte, entropylen)
+ // Get 256 bits of entropy from rand.
+ entropy := make([]byte, 32)
_, err = io.ReadFull(rand, entropy)
if err != nil {
return