Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from rust-random/rng_tests
This PR adds some tests which make sure calls to getrandom (for both small and large buffers) "look" random. While we could certainly add more complicated randomness tests, these simple tests are: - Very easy to understand - Don't require any external crates - Makes sure we aren't doing something obviously stupid like - forgetting [these lines](https://github.com/rust-random/getrandom/blob/bd0654fe70980583e51573e755bafa3b2f8342d9/src/rdrand.rs#L91-L95) - failing to initialize every other byte - initializing some significant fraction of bytes with a constant As this tests all buffer sizes from 1 to 64, it also fixes #290.
- Loading branch information