Digest::MurmurHash3 - MurmurHash3 implementation for Perl 6
use Digest::MurmurHash3;
my Int $uint32 = murmurhash3_32($key, $seed);
my Buf $hex8 = murmurhash3_32_hex($key, $seed);
my Int @uint32 = murmurhash3_128($key, $seed);
my Buf $hex32 = murmurhash3_128_hex($key, $seed);
Digest::MurmurHash3 is a MurmurHash3 hashing algorithm implementation.
Calculates 32-bit hash, and returns as Int.
Calculates 32-bit hash, and returns as Buf. A hex string can be obtained with .unpack("H4")
.
Calculates 128-bit hash, and returns as Array[Int] with length of 4.
Calculates 128-bit hash, and returns as Buf. A hex string can be obtained with .unpack("H16")
.
For installation from source, zef is required.
zef build .
zef test .
zef install .
yowcow yowcow@cpan.org
MurmurHash3 was written by Austin Appleby, and is released under MIT license.
Copyright 2016 yowcow
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.