Use UUID v5 for client identifiers (#2241)

This commit is contained in:
Francesco Renzi 2023-02-02 08:28:34 +00:00 committed by GitHub
parent 7414dc6568
commit 92ab11b4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package actions
import (
"bytes"
"context"
"crypto/sha256"
"crypto/tls"
"crypto/x509"
"encoding/base64"
@ -185,7 +186,7 @@ func (c *Client) Identifier() string {
)
}
return uuid.NewMD5(uuid.NameSpaceOID, []byte(identifier)).String()
return uuid.NewHash(sha256.New(), uuid.NameSpaceOID, []byte(identifier), 6).String()
}
func (c *Client) Do(req *http.Request) (*http.Response, error) {