Skip to content

Commit 55c024f

Browse files
authored
Merge pull request #340 from sine-fdn/polytune/fix-fixed-seed-for-kos-ot
polytune: critical fix, remove fixed seed for OTs
2 parents 9c7cef3 + 92961f0 commit 55c024f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ot.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use crate::ot_core::{self, CorrelatedReceiver, CorrelatedSender, Receiver, Sende
33

44
use crate::{block::Block, channel::Channel, crypto::AesRng, mpc::faand::Error};
55

6-
use rand::SeedableRng;
76
use rand_chacha::ChaCha20Rng;
87

98
/// Transform Block to u128
@@ -22,7 +21,7 @@ pub(crate) async fn kos_ot_sender(
2221
p_to: usize,
2322
shared_rand: &mut ChaCha20Rng,
2423
) -> Result<Vec<u128>, Error> {
25-
let mut rng = AesRng::seed_from_u64(42);
24+
let mut rng = AesRng::new();
2625
let mut ot = ot_core::KosSender::init(channel, &mut rng, p_to, shared_rand).await?;
2726

2827
let sender_out_block = ot

0 commit comments

Comments
 (0)