Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rs/moq-sock/src/shard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,14 @@ mod tests {
use super::*;

/// The length of the connection IDs a sharded endpoint issues.
#[cfg(target_os = "linux")]
const CID_LEN: usize = 8;

/// A connection ID shaped like a sharded endpoint's (see [the
/// encoding](super#the-encoding)): the first byte randomized within the
/// member's stride, so nothing but the reduction can be steering, and the
/// non-SRT marker set.
#[cfg(target_os = "linux")]
fn cid(shard: Shard) -> [u8; CID_LEN] {
use rand::RngExt;
let mut id: [u8; CID_LEN] = rand::random();
Expand Down
Loading