/// Represents access to an RNG suitable for cryptographic operations like key
/// generation, i.e. system randomness.
///
/// This is unavailable in deterministic UDFs (i.e. queries/mutations).
pub struct CryptoRng(());
impl CryptoRng {
pub fn new() -> Self {
CryptoRng(())
}
/// Returns a `aws_lc_rs`-compatible random number generator
pub fn aws_lc(&self) -> aws_lc_rs::rand::SystemRandom {
aws_lc_rs::rand::SystemRandom::new()
}
}
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'
If you have feedback or need assistance with the MCP directory API, please join our Discord server