mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-25 06:05:51 +00:00
Update content/_code-samples/escrow/py/generate_condition.py
Co-authored-by: Rome Reginelli <mduo13@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user