MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new_mask_key

Function new_mask_key

crates/openshell-supervisor-network/src/l7/websocket.rs:943–946  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

941}
942
943fn new_mask_key() -> [u8; 4] {
944 let bytes = uuid::Uuid::new_v4().into_bytes();
945 [bytes[0], bytes[1], bytes[2], bytes[3]]
946}
947
948fn apply_mask(payload: &mut [u8], mask_key: [u8; 4]) {
949 for (i, byte) in payload.iter_mut().enumerate() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected