MCPcopy Create free account
hub / github.com/dolthub/doltgresql / randUTF8RuneTimestamp

Function randUTF8RuneTimestamp

postgres/parser/hlc/timestamp.pb.go:156–164  ·  view source on GitHub ↗
(r randyTimestamp)

Source from the content-addressed store, hash-verified

154}
155
156func randUTF8RuneTimestamp(r randyTimestamp) rune {
157 ru := r.Intn(62)
158 if ru < 10 {
159 return rune(ru + 48)
160 } else if ru < 36 {
161 return rune(ru + 55)
162 }
163 return rune(ru + 61)
164}
165func randStringTimestamp(r randyTimestamp) string {
166 v1 := r.Intn(100)
167 tmps := make([]rune, v1)

Callers 1

randStringTimestampFunction · 0.85

Calls 1

IntnMethod · 0.65

Tested by

no test coverage detected