Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chirpstack/chirpstack
/ get_random_aes_key
Function
get_random_aes_key
chirpstack/src/aeskey.rs:5–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
use lrwn::AES128Key;
4
5
pub fn get_random_aes_key() -> AES128Key {
6
let mut rng = rand::rng();
7
let mut key: [u8; 16] = [0; 16];
8
rng.fill_bytes(&mut key);
9
AES128Key::from_bytes(key)
10
}
Callers
1
create_deployment
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected