From 4178875330c9ada4755bdada0b8d93df24ac2611 Mon Sep 17 00:00:00 2001 From: Obiajulu <47371105+ObiajuluM@users.noreply.github.com> Date: Tue, 6 Sep 2022 20:58:26 -0700 Subject: [PATCH] Update content/_code-samples/escrow/py/generate_condition.py Co-authored-by: Rome Reginelli --- content/_code-samples/escrow/py/generate_condition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/_code-samples/escrow/py/generate_condition.py b/content/_code-samples/escrow/py/generate_condition.py index 35c6079c23..7d4529c754 100644 --- a/content/_code-samples/escrow/py/generate_condition.py +++ b/content/_code-samples/escrow/py/generate_condition.py @@ -5,8 +5,8 @@ from cryptoconditions import PreimageSha256 # """Generate a condition and fulfillment for escrows""" -# whatever you please -secret = urandom(random.randint(32, 64)) +# Generate a random preimage with at least 32 bytes of cryptographically-secure randomness. +secret = urandom(32) # generate cryptic image from secret fufill = PreimageSha256(preimage=secret)