remove suffix from new functions

This commit is contained in:
aler9
2023-08-14 11:14:07 +02:00
parent 1a3e6ad092
commit ca87733ded
53 changed files with 142 additions and 142 deletions

View File

@@ -47,7 +47,7 @@ func TestAuth(t *testing.T) {
}
t.Run(c1.name+"_"+conf, func(t *testing.T) {
nonce, err := GenerateNonce2()
nonce, err := GenerateNonce()
require.NoError(t, err)
se, err := NewSender(
@@ -105,7 +105,7 @@ func TestAuthVLC(t *testing.T) {
"rtsp://myhost/mypath/test?testing/trackID=0",
},
} {
nonce, err := GenerateNonce2()
nonce, err := GenerateNonce()
require.NoError(t, err)
se, err := NewSender(

View File

@@ -17,8 +17,8 @@ func md5Hex(in string) string {
return hex.EncodeToString(h.Sum(nil))
}
// GenerateNonce2 generates a nonce that can be used in Validate().
func GenerateNonce2() (string, error) {
// GenerateNonce generates a nonce that can be used in Validate().
func GenerateNonce() (string, error) {
byts := make([]byte, 16)
_, err := rand.Read(byts)
if err != nil {