Digest...urePerl(3pm)

πŸ’– Digest::MurmurHash3::PurePerl β€” the manual page (yes, that's Digest...urePerl(3pm) bestie, the truncated lil name is just how the man page header does it, don't panic) πŸ’–


✨ NAME ✨

Digest::MurmurHash3::PurePerl β€” a pure perl implementation of MurmurHash3 🌸

Like, no XS, no compiled C, just vibes and perl, and it still hashes. Iconic.


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

Look at that. Clean. Cozy. Copy-paste ready. πŸŽ€


✨ DESCRIPTION ✨

Digest::MurmurHash3::PurePerl is pure perl implementation of MurmurHash3. πŸ’…

That's it, that's the whole description, and honestly? It ate. No cap. πŸ¦‹


✨ METHODS ✨

$h = murmur32($data [, $seed])

Calculates 32-bit hash value. ✨ One number in, one 32-bit integer out. Very demure, very mindful.

($v1,$v2,$v3,v4) = murmur128($data [, $seed])

Calculates 128-bit hash value. 🌈

It returns four element list of 32-bit integers. Four whole integers, bestie, a little squad of them 🫢

Okay so I need you to know I copied that signature character for character, including the v4 that's missing its lil $. That is literally how it is written in the original. I am not fixing it. I am not merging it. I am not inventing anything. Periodt. πŸ’€

✨ SEE ALSO ✨

  • Digest::MurmurHash3 πŸ‘‘ β€” go say hi to the sibling, iykyk

✨ AUTHOR ✨

Hideaki Ohno <hide.o.j55 {at} gmail.com> 🌸 β€” absolute legend, thank you for your service 🫑


✨ LICENSE ✨

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


Okay that's the whole page, you made it, I'm so proud of you πŸ’œ go hash something, main character energy only, mwah 😭✨

Sign-off time: this was the perl v5.36.0 manual page, dated 2023-02-03, and the man name on the tin was Digest...urePerl(3pm). Byeeee πŸ¦‹πŸ’–

πŸ“¦ where this page comes from