fnv1a32 function

int fnv1a32(
  1. String tag
)

FNV-1a (32-bit) over the low byte of each code unit of an ASCII tag.

Implementation

int fnv1a32(String tag) {
  var h = 0x811C9DC5;
  for (final c in tag.codeUnits) {
    h = mul32((h ^ (c & 0xFF)) & _m32, 0x01000193);
  }
  return h;
}