Skip to content

Commit

Permalink
storage: Tweak example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
patniemeyer committed Jul 18, 2024
1 parent 8a55611 commit 0f1328d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions storage/commitments/test_kzg_commitments.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@

# Generate a random blob: 4096 field elements.
def random_blob() -> bytes:
blob = b''
for i in range(4096):
blob += FileCommitments.random_field_element()
return blob
return b''.join(FileCommitments.random_field_element() for _ in range(4096))


# Simulate corruption: Flip one bit in the blob
Expand Down

0 comments on commit 0f1328d

Please sign in to comment.