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

Function SetClockSequence

time.go:96–100  ·  view source on GitHub ↗

SetClockSequence sets the clock sequence to the lower 14 bits of seq. Setting to -1 causes a new sequence to be generated.

(seq int)

Source from the content-addressed store, hash-verified

94// SetClockSequence sets the clock sequence to the lower 14 bits of seq. Setting to
95// -1 causes a new sequence to be generated.
96func SetClockSequence(seq int) {
97 defer timeMu.Unlock()
98 timeMu.Lock()
99 setClockSequence(seq)
100}
101
102func setClockSequence(seq int) {
103 if seq == -1 {

Callers 1

TestClockSeqFunction · 0.85

Calls 1

setClockSequenceFunction · 0.85

Tested by 1

TestClockSeqFunction · 0.68