make deniable blocks larger on average

This commit is contained in:
Kevin Froman 2020-01-19 21:06:22 -06:00
parent 4afa3d87e5
commit c7bbd054e4

View File

@ -27,6 +27,6 @@ def insert_deniable_block(comm_inst):
if secrets.randbelow(chance) == (chance - 1):
# This assumes on the libsodium primitives to have key-privacy
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'})
comm_inst.decrementThreadCount('insert_deniable_block')