DOKK / manpages / debian 12 / libdigest-murmurhash3-pureperl-perl / Digest::MurmurHash3::PurePerl.3pm.en
Digest::MurmurHash3::PurePerl(3pm) User Contributed Perl Documentation Digest::MurmurHash3::PurePerl(3pm)

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

  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);

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

Calculates 32-bit hash value.

Calculates 128-bit hash value.

It returns four element list of 32-bit integers.

Digest::MurmurHash3

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

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

2023-02-03 perl v5.36.0