aboutsummaryrefslogtreecommitdiffstats
path: root/src/handshake/noise.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handshake/noise.rs')
-rw-r--r--src/handshake/noise.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/handshake/noise.rs b/src/handshake/noise.rs
index cf5238c..0534e97 100644
--- a/src/handshake/noise.rs
+++ b/src/handshake/noise.rs
@@ -322,7 +322,6 @@ pub fn create_response<T: Copy>(
state: TemporaryState, // state from "consume_initiation"
msg: &mut NoiseResponse, // resulting response
) -> Result<KeyPair, HandshakeError> {
- let mut rng = OsRng::new().unwrap();
let (receiver, eph_r_pk, hs, ck) = state;
let mut rng = OsRng::new().unwrap();
msg.f_sender.set(sender);