A fast and simple 53-bit string hash function with decent collision resistance. Largely inspired by MurmurHash2/3, but with a focus on speed/simplicity. License: Public domain. Attribution appreciated. cyrb53 (c) 2018 bryc (github.com/bryc)

  • Parameters

    • subject: string

      The string to hash.

    • seed: number = 0

      An optional seed value.

    Returns string

    A hash of the string.