Commit Graph

8 Commits

Author SHA1 Message Date
hcyang
aca1f35170 Make rng in TestEnv deterministic and seedable (#461)
* Move three dependent customizations into new file

* default_min_pin_length(_rp_ids) and max_rp_ids_length

* Did some backing store tricks to make the list configurable in
  TestCustomization.

* Add testing for TestCustomization

* Change assert comparison to assert_eq

* Separate tests

* Move 3 pure constants to new file

* Return Vec<String> for rp_ids()

* Make rng in TestEnv deterministic and seedable

* Move seed method to TestRng256

* Change some constant name in comments to snake case

* Move seed rng of env to the start

* Fix unused warning

* Make rng in TestEnv deterministic and seedable

* Move seed method to TestRng256

* Move seed rng of env to the start

* Fix unused warning

* Seed rng in all fuzz targets

* Fix error introduced when merging

Co-authored-by: Julien Cretin <cretin@google.com>
2022-04-20 15:49:17 +08:00
mingxguo27
f79a659e69 Resolved PR comments and added more fuzz targets. 2020-09-29 16:30:41 +00:00
mingxguo27
3a42ab15ae Added fuzzing helper library to increase code reusability and refactored first fuzz target 2020-09-25 19:03:45 +00:00
Guillaume Endignoux
85a34ad085 Migrate import statements and macros to Rust 2018. 2020-09-24 11:28:24 +02:00
mingxguo27
6cab8aaa20 Resolved comments 2020-09-23 14:33:05 +00:00
mingxguo27
6e8eecce59 Resolved comments 2020-09-23 14:33:05 +00:00
mingxguo27
3a6a78bbf2 Resolved PR comments 2020-09-23 14:33:05 +00:00
mingxguo27
69a440fddb Added first fuzzing target 2020-09-23 14:33:05 +00:00