foxts
Version:
Opinionated collection of common TypeScript utils by @SukkaW
2 lines (1 loc) • 310 B
JavaScript
function t(t){let e=t.length,n=0,r=0,o=8997,f=0,x=33826,a=0,c=40164,h=0,l=52210;for(;n<e;)o^=t.charCodeAt(n++),r=435*o,f=435*x,a=435*c,h=435*l,a+=o<<8,h+=x<<8,f+=r>>>16,o=65535&r,a+=f>>>16,x=65535&f,l=h+(a>>>16)&65535,c=65535&a;return(15&l)*0x1000000000000+0x100000000*c+65536*x+(o^l>>4)}export{t as fnv1a52};