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

Method randomBytes

packages/effect/src/Crypto.ts:93–93  ·  view source on GitHub ↗

* Generates cryptographically secure random bytes.

(size: number)

Source from the content-addressed store, hash-verified

91 * Generates cryptographically secure random bytes.
92 */
93 randomBytes(size: number): Effect.Effect<Uint8Array, PlatformError.PlatformError>
94
95 /**
96 * Computes a cryptographic digest for the supplied data.

Callers 6

makeTempFileFactoryFunction · 0.80
DenoCrypto.test.tsFile · 0.80
NodeCrypto.test.tsFile · 0.80
Crypto.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected