diff --git a/src/role/client.rs b/src/role/client.rs index 2501451..b249fd4 100644 --- a/src/role/client.rs +++ b/src/role/client.rs @@ -38,7 +38,7 @@ impl RoleHelper for StandardClient { client_consts!(); #[inline] - fn new() -> Self { Self(crate::frame::mask::new_mask_key()) } + fn new() -> Self { Self([9u8; 4]) } #[inline] fn write_mask_key(&self) -> Mask { Mask::Key(self.0) } @@ -64,7 +64,7 @@ impl RoleHelper for FixedMaskClient { client_consts!(); #[inline] - fn new() -> Self { Self(crate::frame::mask::new_mask_key()) } + fn new() -> Self { Self([9u8; 4]) } #[inline] fn write_mask_key(&self) -> Mask { Mask::Key(self.0) } diff --git a/src/stream/detail/write.rs b/src/stream/detail/write.rs index f25498a..06e4e33 100644 --- a/src/stream/detail/write.rs +++ b/src/stream/detail/write.rs @@ -189,7 +189,7 @@ mod test { for _ in 0..8 { auto_mask(&mut role, &buf2); assert_eq!(key, role.write_mask_key().to_key()); - + apply_mask4(key, &mut buf); assert_eq!(buf, buf2); }