Skip to content

Conversation

@cyphar
Copy link

@cyphar cyphar commented May 23, 2021

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

@cyphar cyphar changed the title arbitrary: add fill_slice method for AsRef<[T: Abitrary]> arbitrary: add fill_slice method for AsRef<[T: Arbitrary]> May 23, 2021
@cyphar cyphar force-pushed the arbitrary-slice_fill branch 2 times, most recently from 07a572c to 41d3d47 Compare May 23, 2021 01:54
@cyphar cyphar changed the title arbitrary: add fill_slice method for AsRef<[T: Arbitrary]> arbitrary: add fill_slice method for AsMut<[T: Arbitrary]> May 23, 2021
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.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Arbitrary for AsMut<[T: Arbitrary]>

1 participant