diff options
Diffstat (limited to 'vendor/github.com/cespare/xxhash/xxhash_safe.go')
-rw-r--r-- | vendor/github.com/cespare/xxhash/xxhash_safe.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/cespare/xxhash/xxhash_safe.go b/vendor/github.com/cespare/xxhash/xxhash_safe.go new file mode 100644 index 000000000..dfa15ab7e --- /dev/null +++ b/vendor/github.com/cespare/xxhash/xxhash_safe.go @@ -0,0 +1,10 @@ +// +build appengine + +// This file contains the safe implementations of otherwise unsafe-using code. + +package xxhash + +// Sum64String computes the 64-bit xxHash digest of s. +func Sum64String(s string) uint64 { + return Sum64([]byte(s)) +} |