make deniable blocks larger on average

master
Kevin Froman 2020-01-19 21:06:22 -06:00
parent 4afa3d87e5
commit c7bbd054e4
1 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,6 @@ def insert_deniable_block(comm_inst):
if secrets.randbelow(chance) == (chance - 1): if secrets.randbelow(chance) == (chance - 1):
# This assumes on the libsodium primitives to have key-privacy # This assumes on the libsodium primitives to have key-privacy
fakePeer = onionrvalues.DENIABLE_PEER_ADDRESS fakePeer = onionrvalues.DENIABLE_PEER_ADDRESS
data = secrets.token_hex(secrets.randbelow(1024) + 1) data = secrets.token_hex(secrets.randbelow(5120) + 1)
onionrblocks.insert(data, header='pm', encryptType='asym', asymPeer=fakePeer, disableForward=True, meta={'subject': 'foo'}) onionrblocks.insert(data, header='pm', encryptType='asym', asymPeer=fakePeer, disableForward=True, meta={'subject': 'foo'})
comm_inst.decrementThreadCount('insert_deniable_block') comm_inst.decrementThreadCount('insert_deniable_block')