Skip to main content
. 2023 Dec 30;24(1):224. doi: 10.3390/s24010224
Listing 5. FNV-1a algorithm.
  • Initialize the hash variable, and name it H, with an offset basis.

  • For each byte of data, name it B:

    • –

      Set H to H XOR B

    • –

      Multiply H by FNV_prime

  • Return H.