Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ConsortiumAI/Consortium
/ getRandomBytes
Function
getRandomBytes
packages/consortium-web/src/lib/encryption.ts:38–40 ·
view source on GitHub ↗
(size: number)
Source
from the content-addressed store, hash-verified
36
// --- Random bytes ---
37
38
export
function
getRandomBytes(size: number): Uint8Array {
39
return
sodium.randombytes_buf(size);
40
}
41
42
// --- Auth challenge-response ---
43
Callers
4
authenticate
Function · 0.90
authChallenge
Function · 0.70
encryptLegacy
Function · 0.70
encryptWithDataKey
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected