MCPcopy Create free account
hub / github.com/blobcache/blobcache / RandomOID

Function RandomOID

src/blobcache/blobcache.go:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20type OID [OIDSize]byte
21
22func RandomOID() (ret OID) {
23 rand.Read(ret[:])
24 return ret
25}
26
27func ParseOID(s string) (OID, error) {
28 var ret OID

Callers 7

ShareInMethod · 0.92
OpenFromMethod · 0.92
CreateVolumeMethod · 0.92
createRemoteVolumeMethod · 0.92
CreateQueueMethod · 0.92
QueueAPIFunction · 0.92
BeginTxMethod · 0.92

Calls 1

ReadMethod · 0.80

Tested by

no test coverage detected