MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / newEnrollTokenString

Function newEnrollTokenString

internal/serverapi/node_enroll_token.go:124–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124func newEnrollTokenString() (string, error) {
125 var buf [32]byte
126 if _, err := rand.Read(buf[:]); err != nil {
127 return "", err
128 }
129 return hex.EncodeToString(buf[:]), nil
130}
131
132func inferServerURL(r *http.Request) string {
133 scheme := "https"

Callers 1

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected