BurntSushi / quickcheck

Automated property based testing for Rust (with shrinking).
The Unlicense
2.4k stars 149 forks source link

arbitrary: add fill_slice method for AsMut<[T: Arbitrary]> #292

Open cyphar opened 3 years ago

cyphar commented 3 years ago

This allows users to fairly easily migrate from CoreRng::fill_byte() and similar constructions without requiring them to fuss around with a new SeedableRng (or copy-paste this boilerplate) when their slice is just full of Arbitrary-able types.

Fixes #291 Signed-off-by: Aleksa Sarai cyphar@cyphar.com