MCPcopy Index your code
hub / github.com/coder/coder / HexString

Function HexString

cryptorand/strings.go:117–119  ·  view source on GitHub ↗

HexString returns a hexadecimal string of given length.

(size int)

Source from the content-addressed store, hash-verified

115
116// HexString returns a hexadecimal string of given length.
117func HexString(size int) (string, error) {
118 return StringCharset(Hex, size)
119}
120
121// Sha1String returns a 40-character hexadecimal string, which matches
122// the length of a SHA-1 hash (160 bits).

Callers 2

TestRandError_pre_Go1_24Function · 0.92

Calls 1

StringCharsetFunction · 0.85

Tested by 2

TestRandError_pre_Go1_24Function · 0.74