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

Function randomBits

util.go:12–16  ·  view source on GitHub ↗

randomBits completely fills slice b with random data.

(b []byte)

Source from the content-addressed store, hash-verified

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

Callers 2

setNodeInterfaceFunction · 0.85
setClockSequenceFunction · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected