MCPcopy Index your code
hub / github.com/Effect-TS/effect / setRandom

Function setRandom

packages/effect/src/Layer.ts:1011–1014  ·  view source on GitHub ↗
(random: A)

Source from the content-addressed store, hash-verified

1009 * @category Random
1010 */
1011export const setRandom = <A extends Random.Random>(random: A): Layer<never> =>
1012 scopedDiscard(
1013 fiberRuntime.fiberRefLocallyScopedWith(defaultServices.currentServices, Context.add(randomTag, random))
1014 )
1015
1016/**
1017 * @since 2.0.0

Callers

nothing calls this directly

Calls 2

scopedDiscardFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected