MCPcopy Create free account
hub / github.com/Effect-TS/effect / randomKey

Function randomKey

packages/effect/test/Hash.test.ts:186–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184 return (seed >>> 16) % n
185 }
186 const randomKey = (): unknown => [random(60), `k${random(60)}`, [random(4), random(4)]][random(3)]
187 const shuffle = <A>(values: ReadonlyArray<A>): Array<A> => {
188 const output = [...values]
189 for (let i = output.length - 1; i > 0; i--) {

Callers 1

Hash.test.tsFile · 0.85

Calls 1

randomFunction · 0.70

Tested by

no test coverage detected