HomeSoftware Heritage

Draw contents from a byte string instead of generating arbitrary hashes

Description

Draw contents from a byte string instead of generating arbitrary hashes

This generates more realistic contents and avoids spurious HashCollisions when
generating a set of objects using these hypothesis strategies, at the cost of
slightly worse "boundary checking" (i.e. we won't check contents with a length >
4096 bytes).

Details

Provenance
olasdAuthored on Mar 2 2020, 2:03 PM
olasdPushed on Mar 2 2020, 4:27 PM
Differential Revision
D2739: Draw contents from a byte string instead of generating arbitrary hashes
Parents
rDMODded150d6c32e: Add a method to generate Content/SkippedContent from binary data
Branches
Unknown
Tags
Unknown
Build Status
Buildable 10845
Build 16295: test-and-buildJenkins