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

Function GetNonce

common/common.go:31–35  ·  view source on GitHub ↗

GetNonce returns random nonce

()

Source from the content-addressed store, hash-verified

29
30// GetNonce returns random nonce
31func GetNonce() uint64 {
32 // Fixme replace with the real random number generator
33 nonce := uint64(rand.Uint32())<<32 + uint64(rand.Uint32())
34 return nonce
35}
36
37// ToHexString convert []byte to hex string
38func ToHexString(data []byte) string {

Callers 5

TimeoutMethod · 0.92
constructBlockMethod · 0.92
buildTestBlockFunction · 0.92
makeBlockMethod · 0.92
TestGetNonceFunction · 0.85

Calls

no outgoing calls

Tested by 2

buildTestBlockFunction · 0.74
TestGetNonceFunction · 0.68