logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Digest::MurmurHash3::PurePerl - Pure perl implementation of MurmurHash3

Author

       Hideaki Ohno  <hide.o.j55 {at} gmail.com>

Description

       Digest::MurmurHash3::PurePerl is pure perl implementation of MurmurHash3.

License

       This library is free software; you can redistribute it and/or modify it under the same terms as Perl
       itself.

perl v5.36.0                                       2023-02-03                 Digest::MurmurHash3::PurePerl(3pm)

Methods

$h=murmur32($data[,$seed])
       Calculates 32-bit hash value.

   ($v1,$v2,$v3,v4)=murmur128($data[,$seed])
       Calculates 128-bit hash value.

       It returns four element list of 32-bit integers.

Name

       Digest::MurmurHash3::PurePerl - Pure perl implementation of MurmurHash3

See Also

       Digest::MurmurHash3

Synopsis

         use strict;
         use warnings;
         use Digest::MurmurHash3::PurePerl;

         # Calculate hash value without seed
         my $hash = murmur32($data);
         my @hashes = murmur128($data);

         # Calculate hash value with seed
         $hash = murmur32($data, $seed);
         @hashes = murmur128($data, $seed);

See Also