Joe Richey
b893cb9c77
Use iterators for num_diff_bits
...
Signed-off-by: Joe Richey <joerichey@google.com >
2022-10-22 13:52:42 -07:00
Joe Richey
c83edb650b
Add quality tests for calling getrandom on small buffers
...
Signed-off-by: Joe Richey <joerichey@google.com >
2022-10-22 13:37:23 -07:00
Joe Richey
c12f70c20a
Sharpen bounds in test_diff
...
We can be much stricter without risking inadvertant failure.
Signed-off-by: Joe Richey <joerichey@google.com >
2022-10-22 13:37:21 -07:00
Joe Richey
ee0ca47aa2
Run (most) common tests against the custom RNG
...
Signed-off-by: Joe Richey <joerichey@google.com >
2022-10-22 13:25:44 -07:00
Joseph Richey
347a300215
Add test for custom RNG handler ( #197 )
...
See #194
This uses the fact that `wasm32-unknown-unknown` is an "unsupported" target. This means we can use the `"custom"` feature to define a custom handler, and then write tests to make sure that function is called.
2021-01-05 02:00:21 -08:00
Joseph Richey
e29ed04f28
Move tests to tests/ directory ( #195 )
...
Signed-off-by: Joe Richey <joerichey@google.com >
2021-01-03 22:24:48 -08:00