MCPcopy
hub / github.com/alan2207/bulletproof-react / hash

Function hash

apps/nextjs-app/src/testing/mocks/utils.ts:22–30  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

20};
21
22export const hash = (str: string) => {
23 let hash = 5381,
24 i = str.length;
25
26 while (i) {
27 hash = (hash * 33) ^ str.charCodeAt(--i);
28 }
29 return String(hash >>> 0);
30};
31
32export const networkDelay = () => {
33 const delayTime = process.env.TEST

Callers 3

createUserFunction · 0.90
auth.tsFile · 0.90
authenticateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected