Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/llrt
/ random_byte_array
Function
random_byte_array
modules/llrt_crypto/src/lib.rs:82–86 ·
view source on GitHub ↗
(length: usize)
Source
from the content-addressed store, hash-verified
80
_ => Ok(None),
81
}
82
}
83
84
#[inline]
85
pub fn random_byte_array(length: usize) -> Vec<u8> {
86
let mut vec = vec![0u8; length];
87
rand::rng().fill(&mut vec[..]);
88
vec
89
}
Callers
6
get_random_bytes
Function · 0.85
generate_symmetric_key
Function · 0.85
generate_aes_key
Method · 0.85
generate_hmac_key
Method · 0.85
generate_aes_key
Method · 0.85
generate_hmac_key
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected