MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / hash

Function hash

scripts/rubi/benchmark.ts:443–450  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

441 return done('inconclusive', {
442 result: result.toString(),
443 detail: `passes=${passes} fails=${fails} worst=${worst.toExponential(2)}`,
444 });
445 } catch (e) {
446 return done('error', { detail: String(e) });
447 }
448}
449
450function hash(s: string): number {
451 let h = 2166136261;
452 for (let i = 0; i < s.length; i++) {
453 h ^= s.charCodeAt(i);

Callers 1

runProblemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected