Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hyperledger/fabric
/ GetRandomNonce
Function
GetRandomNonce
common/crypto/random.go:43–45 ·
view source on GitHub ↗
GetRandomNonce returns a random byte array of length NonceSize
()
Source
from the content-addressed store, hash-verified
41
42
// GetRandomNonce returns a random byte array of length NonceSize
43
func
GetRandomNonce() ([]byte, error) {
44
return
GetRandomBytes(NonceSize)
45
}
Callers
5
createHeader
Function · 0.92
constructUnsignedTxEnv
Function · 0.92
randomNonceOrPanic
Function · 0.92
ConstructSignedTxEnv
Function · 0.92
TestGetRandomNonce
Function · 0.85
Calls
1
GetRandomBytes
Function · 0.85
Tested by
2
createHeader
Function · 0.74
TestGetRandomNonce
Function · 0.68