Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
30
export
function
getRandomBytes(size: number): Uint8Array {
31
return
new
Uint8Array(randomBytes(size));
32
}
33
34
// --- HMAC-SHA512 ---
35
Callers
15
makeCredentials
Function · 0.90
makeRawSessionWithDataKey
Function · 0.90
cli-smoke.test.ts
File · 0.90
credentials.test.ts
File · 0.90
makeCredentials
Function · 0.90
makeRawSessionWithDataKey
Function · 0.90
api.test.ts
File · 0.90
makeSessionKey
Function · 0.90
authLogin
Function · 0.90
auth.test.ts
File · 0.90
createSession
Function · 0.90
encryption.test.ts
File · 0.90
Calls
no outgoing calls
Tested by
5
makeCredentials
Function · 0.72
makeRawSessionWithDataKey
Function · 0.72
makeCredentials
Function · 0.72
makeRawSessionWithDataKey
Function · 0.72
makeSessionKey
Function · 0.72