(n int)
| 31 | } |
| 32 | |
| 33 | func csprngEntropy(n int) []byte { |
| 34 | buf := make([]byte, n) |
| 35 | if _, err := io.ReadFull(rand.Reader, buf); err != nil { |
| 36 | panic("reading from crypto/rand failed: " + err.Error()) |
| 37 | } |
| 38 | return buf |
| 39 | } |
| 40 | |
| 41 | func randSig() []byte { |
| 42 | sig := csprngEntropy(65) |
no test coverage detected