diff --git a/tarpc/src/serde_transport.rs b/tarpc/src/serde_transport.rs index 55eb8d9..5f9dcd5 100644 --- a/tarpc/src/serde_transport.rs +++ b/tarpc/src/serde_transport.rs @@ -443,7 +443,7 @@ pub mod unix { /// Appends a random hex string to the socket name resulting in /// `/_` pub fn with_random>(name: S) -> Self { - Self::new(format!("{}_{:x}", name.as_ref(), rand::random::())) + Self::new(format!("{}_{:016x}", name.as_ref(), rand::random::())) } }