MCPcopy
hub / github.com/google/uuid / randomBits

Function randomBits

util.go:13–17  ·  util.go::randomBits

randomBits completely fills slice b with random data.

(b []byte)

Source from the content-addressed store, hash-verified

11
12// randomBits completely fills slice b with random data.
13func randomBits(b []byte) {
14 if _, err := io.ReadFull(rander, b); err != nil {
15 panic(err.Error()) // rand should never fail
16 }
17}
18
19// xvalues returns the value of a byte as a hexadecimal digit or 255.
20var xvalues = [256]byte{

Callers 2

setNodeInterfaceFunction · 0.85
setClockSequenceFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected