EC_MURMURHASH3(3)

✨ EC_MURMURHASH3(3) ✨

okay so bestie, we're in the Libecoli Programmer's Manual rn and this is the ec_murmurhash3 page πŸŽ€ it does exactly one thing and it does it gorgeously: it hands you a 32-bit murmurhash3. that's it. that's the whole vibe. πŸ’…


🌸 NAME 🌸

ec_murmurhash3 β€” calculate a 32-bit murmurhash3. no cap, that's literally the job description. πŸ¦‹


✨ SYNOPSIS ✨

first things first, you gotta let it in:

#include <ecoli/murmurhash.h>

then it's giving function signature:

uint32_t ec_murmurhash3(
    /*
     * The key (the unaligned variable-length array of bytes).
     */
    const void   *key,
    int           len,   /* The length of the key, counting by bytes. */
    uint32_t      seed   /* Can be any 4-byte value initialization value. */
);

let's walk the params because they're all main characters here πŸ‘‘

  • key β€” the key itself, aka the unaligned variable-length array of bytes. yes, unaligned, yes, variable-length, she contains multitudes πŸ’–
  • len β€” the length of the key, and we're counting by bytes, not vibes 🫢
  • seed β€” can be any 4-byte value initialization value. literally any one. go feral, pick your fave πŸŽ€

πŸ’œ RETURN VALUE πŸ’œ

a 32-bit hash. that's the tea. β˜•βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹

the rest of the little hash family, all iconic, all worth a read:

iykyk πŸ”₯


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.

and that's the whole page bestie, no crumbs left 🌈 this little libecoli moment was brought to you by the 2026-06-11 release of libecoli, and we're screaming EC_MURMURHASH3(3) one last time on the way out πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from