CmpStr - v3.4.0
    Preparing search index...

    Class Hasher

    Hasher Utility Static class for modified FNV-1a hash algorithm implementation.

    Index
    FNV_PRIME: number = 0x01000193

    Constants for the hash algorithm

    HASH_OFFSET: number = 0x811c9dc5
    • Computes a hash value for a given string using the FNV-1a algorithm.

      Modifications:

      • Processes 4 characters at a time (chunks)
      • Using MurmurHash3 finalizer

      Parameters

      • str: string

        The string to hash

      Returns number

      • The computed hash value as an unsigned 32-bit integer