Cap masked hash to 16 hexes

This commit is contained in:
Davide De Rosa 2018-10-24 18:49:15 +02:00
parent ae85337e91
commit b35fb34da5
1 changed files with 1 additions and 1 deletions

View File

@ -111,6 +111,6 @@ extension CustomStringConvertible {
md.withUnsafeMutableBytes {
_ = CC_SHA1(&data, CC_LONG(data.count), $0)
}
return md.toHex()
return "#\(md.toHex().prefix(16))#"
}
}