diff --git a/nym-outfox/src/packet.rs b/nym-outfox/src/packet.rs index 0b0208703b..720ed6071a 100644 --- a/nym-outfox/src/packet.rs +++ b/nym-outfox/src/packet.rs @@ -130,6 +130,7 @@ impl OutfoxPacket { // We know that we'll always get 4 nodes, so we can unwrap here let processing_node = nodes.last().unwrap(); let destination_node = nodes.first().unwrap(); + OsRng.fill_bytes(&mut secret_key); stage_params.encode_mix_layer( &mut buffer[range], &secret_key,