mirror of
https://github.com/aler9/gortsplib
synced 2025-11-02 19:34:01 +08:00
remove suffix from new functions
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user