Files
glchat/internal/httpx/context.go
T

15 lines
219 B
Go
Raw Normal View History

package httpx
import (
"crypto/rand"
"encoding/hex"
)
func newRequestID() string {
var buf [16]byte
if _, err := rand.Read(buf[:]); err != nil {
return "0000000000000000"
}
return hex.EncodeToString(buf[:])
}