Преглед на файлове

change temporary variable to lower camel case (#427)

Co-authored-by: Chinsyo <chinsyo@sina.cn>
Chinsyo преди 5 години
родител
ревизия
c4c750d03f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      transport/internet/kcp/cryptreal.go

+ 2 - 2
transport/internet/kcp/cryptreal.go

@@ -9,7 +9,7 @@ import (
 )
 
 func NewAEADAESGCMBasedOnSeed(seed string) cipher.AEAD {
-	HashedSeed := sha256.Sum256([]byte(seed))
-	aesBlock := common.Must2(aes.NewCipher(HashedSeed[:16])).(cipher.Block)
+	hashedSeed := sha256.Sum256([]byte(seed))
+	aesBlock := common.Must2(aes.NewCipher(hashedSeed[:16])).(cipher.Block)
 	return common.Must2(cipher.NewGCM(aesBlock)).(cipher.AEAD)
 }