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

Function ulidRandomBytes

packages/effect/src/crypto/SecureRandom.ts:230–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228 const uuidV7 = Uuid.makeV7Monotonic()
229 const ulid = Ulid.makeMonotonic()
230 const ulidRandomBytes = () => randomBytes(10)
231 return {
232 randomBytes: (size) => Effect.sync(() => randomBytesChecked(size)),
233 intBetween: (min, max, options) => Effect.sync(() => intBetweenUnsafe(min, max, options?.halfOpen ?? false, draw)),

Callers

nothing calls this directly

Calls 1

randomBytesFunction · 0.85

Tested by

no test coverage detected