A Swift implementation of the xxHash hashing algorithm.
To use swift-xxhash
in your project, add it as a dependency in your
Package.swift
file:
dependencies: [
.package(url: "https://github.com/swift-cloud/swift-xxhash", from: "1.0.0")
]
import XXHash
let hash = XXH32().hash("Hello, world!")
print(hash) // 834093149
swift-xxhash
is released under the MIT license.