import { LiveRandom } from "@effect/core/io/Random/operations/live" /** * @tsplus static effect/core/io/Random.Ops withSeed */ export function withSeed(seed: number) { return (effect: Effect): Effect => Effect.sync(new LiveRandom(seed)).flatMap((random) => effect.apply(DefaultServices.currentServices.locally(Env(Random.Tag, random))) ) }