MCPcopy Create free account
hub / github.com/DNAProject/DNA / newTestVrfValue

Function newTestVrfValue

consensus/vbft/node_utils_test.go:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157}
158
159func newTestVrfValue() vconfig.VRFValue {
160 v := make([]byte, 1024)
161 rand.Read(v[:])
162 t := sha512.Sum512(v)
163 f := sha512.Sum512(t[:])
164 return vconfig.VRFValue(f)
165}
166
167func TestCalcParticipantPeers(t *testing.T) {
168 for i := 4; i < 100; i++ {

Callers 1

testCalcParticipantPeersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected