Skip to content

Commit 68d6597

Browse files
authored
use random seed in rr22 (#333)
1 parent cc45754 commit 68d6597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psi/algorithm/rr22/rr22_oprf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void Rr22OprfReceiver::Init(const std::shared_ptr<yacl::link::Context>& lctx,
402402
size_t init_size, size_t num_threads) {
403403
num_threads_ = num_threads;
404404
if (mode_ == Rr22PsiMode::FastMode) {
405-
uint128_t baxos_seed = 1;
405+
uint128_t baxos_seed = yacl::crypto::SecureRandU128();
406406
yacl::ByteContainerView paxos_seed_buf(&baxos_seed, sizeof(uint128_t));
407407

408408
lctx->SendAsyncThrottled(lctx->NextRank(), paxos_seed_buf,

0 commit comments

Comments
 (0)