소스 검색

Fix String extension crc32c to call crc32c

Bryant Luk 6 년 전
부모
커밋
68060e5382
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/CryptoSwift/String+Extension.swift

+ 1 - 1
Sources/CryptoSwift/String+Extension.swift

@@ -52,7 +52,7 @@ extension String {
     }
     }
 
 
     public func crc32c(seed: UInt32? = nil, reflect: Bool = true) -> String {
     public func crc32c(seed: UInt32? = nil, reflect: Bool = true) -> String {
-        return bytes.crc32(seed: seed, reflect: reflect).bytes().toHexString()
+        return bytes.crc32c(seed: seed, reflect: reflect).bytes().toHexString()
     }
     }
 
 
     public func crc16(seed: UInt16? = nil) -> String {
     public func crc16(seed: UInt16? = nil) -> String {