MCPcopy
hub / github.com/segmentio/ksuid / NewRandom

Function NewRandom

ksuid.go:213–215  ·  view source on GitHub ↗

Generates a new KSUID

()

Source from the content-addressed store, hash-verified

211
212// Generates a new KSUID
213func NewRandom() (ksuid KSUID, err error) {
214 return NewRandomWithTime(time.Now())
215}
216
217func NewRandomWithTime(t time.Time) (ksuid KSUID, err error) {
218 // Go's default random number generators are not safe for concurrent use by

Callers 1

NewFunction · 0.85

Calls 1

NewRandomWithTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…