MCPcopy Create free account
hub / github.com/effect-app/libs / random

Function random

repos/effect/packages/effect/src/Hash.ts:195–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 randomHashCache.set(self, number(Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)))
194 }
195 return randomHashCache.get(self)!
196}
197
198/**
199 * Combines two hash values into a single hash value.
200 *
201 * **When to use**
202 *
203 * Use to build a hash for a composite value by folding together hash values for

Callers 1

hashFunction · 0.85

Calls 4

numberFunction · 0.70
setMethod · 0.65
getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…