CmpStr - v3.2.1
    Preparing search index...

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

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    FNV_PRIME: number = 0x01000193

    Constants for the hash algorithm

    HASH_OFFSET: number = 0x811c9dc5

    Methods

    • 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