MurmurHash2 For Python3
Project description
- murmurhash is a fast hash function ::
>>> import mmhash2
>>> print(mmhash2.murmurhash64a("zhenhao", 0x1234)) 16299279845682521441
>>> print(mmhash2.dechex(mmhash2.murmurhash64a("zhenhao", 0x1234))) 'e232aca990972561'
>>> print(mmhash2.base62encode(mmhash2.murmurhash64a("zhenhao", 0x1234))) 'jq2Se1vfXaN'
>>> print(mmhash2.murmurhash64b('zhenhao', 0x1234)) 4178523214822422458
MurmurHash2 http://murmurhash.googlepages.com/ MurmurHash2, 64-bit versions, by Austin Appleby
Modified by hit_zhenhao@163.com
linux python lib
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mmhash2-1.4.tar.gz
(2.3 kB
view hashes)