MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / csprngEntropy

Function csprngEntropy

crypto/secp256k1/secp256_test.go:33–39  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

31}
32
33func 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
41func randSig() []byte {
42 sig := csprngEntropy(65)

Callers 9

randSigFunction · 0.85
TestSignatureValidityFunction · 0.85
TestInvalidRecoveryIDFunction · 0.85
TestSignAndRecoverFunction · 0.85
BenchmarkSignFunction · 0.85
BenchmarkRecoverFunction · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected