folly::fingerprint128

Compute the 128-bit Rabin fingerprint of a string. Return the 64 most significant bits in *msb, and the 64 least significant bits in *lsb.

Synopsis

Declared in <folly/Fingerprint.h>

void
fingerprint128(
    StringPiece str,
    uint64_t* msb,
    uint64_t* lsb);

Parameters

NameDescription
strThe string to fingerprint.
msbReceives the 64 most significant bits of the fingerprint.
lsbReceives the 64 least significant bits of the fingerprint.