MCPcopy
hub / github.com/vercel/next-app-router-playground / mulberry32

Function mulberry32

ui/skeleton.tsx:38–43  ·  view source on GitHub ↗
(a: number)

Source from the content-addressed store, hash-verified

36
37// Yoinked from https://github.com/remotion-dev/remotion/blob/main/packages/core/src/random.ts
38function mulberry32(a: number) {
39 let t = a + 0x6d2b79f5;
40 t = Math.imul(t ^ (t >>> 15), t | 1);
41 t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
42 return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
43}
44
45function hashCode(str: string) {
46 let i = 0;

Callers 1

randomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected