MCPcopy
hub / github.com/slopus/happy / getRandomBytes

Function getRandomBytes

packages/happy-agent/src/encryption.ts:30–32  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

28}
29
30export function getRandomBytes(size: number): Uint8Array {
31 return new Uint8Array(randomBytes(size));
32}
33
34// --- HMAC-SHA512 ---
35

Callers 15

makeCredentialsFunction · 0.90
cli-smoke.test.tsFile · 0.90
makeCredentialsFunction · 0.90
api.test.tsFile · 0.90
makeSessionKeyFunction · 0.90
authLoginFunction · 0.90
auth.test.tsFile · 0.90
createSessionFunction · 0.90
encryption.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 5

makeCredentialsFunction · 0.72
makeCredentialsFunction · 0.72
makeSessionKeyFunction · 0.72